Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

oleg dashevskii's latest activity

Wednesday, August 25 2010
5436 RC1 to RC2 regression : multilines where conditions autojoin with "AND" was updated in Ruby on Rails
  • oleg dashevskii
    oleg dashevskii commented at 6:09 AM

    So, the bug confirmed with MySQL and PostgreSQL adapters.

Tuesday, August 24 2010
5441 ActiveRecord::Calculations#count doesn't allow table names in column_name arg... was updated in Ruby on Rails
  • oleg dashevskii
    oleg dashevskii commented at 4:29 PM

    Well, let's simplify the example:

    User.count('orders.id', :joins => :orders, :group => 'users.id')
    

    Schema: User has many orders.

    The count() call without :gro...

  • oleg dashevskii
    oleg dashevskii created the ticket at 2:19 PM

    I have the following code that works in 2.3.8

    @dishes.count('order_items.id',
                  :group => 'dishes.id',
                  :joins => {:multi_dishes => { ...
5442 Model.has_many_through_association.find(id) returns a read-only record was created in Ruby on Rails
  • oleg dashevskii
    oleg dashevskii created the ticket at 2:49 PM

    I have the following models:

    class Provider < AR::Base
      has_many :dish_types
      has_many :dishes, :through => :dish_types
    end
    
    class DishType < AR::Base
      has_...
5436 RC1 to RC2 regression : multilines where conditions autojoin with "AND" was updated in Ruby on Rails
  • oleg dashevskii
    oleg dashevskii commented at 1:40 PM

    Got bitten by it too. Quick workaround is to add backslash:

    class User < ActiveRecord::Base
        scope :test_scope,
                   where("active = ? \
             ...
Thursday, July 08 2010
4869 [PATCH] A bug in ActiveRecord::Associations#using_limitable_reflections was updated in Ruby on Rails
Thursday, June 17 2010
4869 [PATCH] A bug in ActiveRecord::Associations#using_limitable_reflections was updated in Ruby on Rails
  • oleg dashevskii
    • Title changed from A bug in ActiveRecord::Associations#using_limitable_reflections to [PATCH] A bug in ActiveRecord::Associations#using_limitable_reflections
    by oleg dashevskii at 5:07 AM
Wednesday, June 16 2010
4869 A bug in ActiveRecord::Associations#using_limitable_reflections was created in Ruby on Rails
  • oleg dashevskii
    oleg dashevskii created the ticket at 5:40 AM

    After 2.3.5 to 2.3.8 transition I found unexpected breakage in my code:

    OrderItem.sum(:quantity, {
      :joins => [:menu_item, :order], 
      :group => 'menu_items.d...
Tuesday, July 07 2009
2160 nested_attributes: validates_uniqueness_of fails was updated in Ruby on Rails
  • oleg dashevskii
    • Tag changed from 2.3-rc2 to 2.3.x
    by oleg dashevskii at 8:33 AM

    I've run into same problem. Test is attached.