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.

Sai Emrys's latest activity

Sunday, March 14 2010
4176 Make change_table execute changes in batch was created in Ruby on Rails
  • Sai Emrys
    Sai Emrys created the ticket at 6:49 PM

    Currently, change_table executes every change as an ALTER TABLE in sequence.

    This is extremely inefficient if making multiple changes, especially for a large ta...

Sunday, January 24 2010
2155 Please add :position => :replace to link_to_remote (and family) was updated in Ruby on Rails
  • Sai Emrys
    Sai Emrys commented at 3:53 AM

    Any progress on this? I'd like it too.

3764 ActiveRecord through reflections has recursion bug was updated in Ruby on Rails
  • Sai Emrys
    Sai Emrys commented at 1:01 AM

    I don't know Rails' testing framework well enough to do so, sorry.

    But the error is fairly evident just from looking through the calls.

Thursday, January 21 2010
3764 ActiveRecord through reflections has recursion bug was created in Ruby on Rails
  • Sai Emrys
    Sai Emrys created the ticket at 9:08 AM

    In 2.3-stable, rails/activerecord/lib/active_record/reflection.rb:309 (source_reflection) calls klass.

    klass in turn calls derive_class_name, which - if options...

Wednesday, December 16 2009
3588 :autosave => true + accepts_nested_attributes_for = circular validation & blo... was updated in Ruby on Rails
  • Sai Emrys
    Sai Emrys commented at 10:36 PM
  • Sai Emrys
    Sai Emrys created the ticket at 9:52 PM

    Consider the following:

    class Discussion < ActiveRecord::Base
      belongs_to :context, :polymorphic => true
      has_many :messages, :dependent => :destroy, :invers...
2815 nested models: build should directly assign the parent was updated in Ruby on Rails
  • Sai Emrys
    Sai Emrys commented at 10:02 PM

    Bug #3588 is related to this - :autosave => true + accepts_nested_attributes_for = circular validation & blown stack.

Thursday, October 22 2009
3410 Time - TimeWithZone fails (sometimes) was updated in Ruby on Rails
  • Sai Emrys
    Sai Emrys commented at 7:35 AM

    Removing the config.active_record.default_timezone fixes this. (I added it to try to help with #1339.)

    Nevertheless, it's a weird bug.

  • Sai Emrys
    Sai Emrys created the ticket at 7:28 AM
     38 :> x = Time.zone.now
        => Thu, 22 Oct 2009 06:23:32 UTC 00:00
     39 :> y = Time.now
        => Wed Oct 21 23:23:35 -0700 2009
     40 :> x.class
        => ActiveSuppo...
1339 AR::Base should not be nuking its children, just because it lost interest was updated in Ruby on Rails
  • Sai Emrys
    Sai Emrys commented at 5:13 AM

    I have this issue when using acts_as_versioned in rails 2.3.4 (also previously in 2.3.2).

    This works:
    Profile.first.updater.login
    This blows up on create_time_z...