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.

There was a problem

You must be a member of this account.

Ari Epstein's latest activity

Friday, December 10 2010
6145 Generate valid sql for ActiveRecord::Reflection with polymorphic aspect throu... was updated in Ruby on Rails
  • Ari Epstein
    Ari Epstein commented at 5:29 PM

    Ack! This should be closed -- it appears to be a bug in the composite_primary_keys gem.

  • Ari Epstein
    • Tag changed from activerecord 3.0, associations, has_many, polymorphic, reflection to activerecord 3.0, associations, has_many, patch, polymorphic, reflection
    by Ari Epstein at 5:10 PM
  • Ari Epstein
    Ari Epstein created the ticket at 5:06 PM

    When I do the following an error is raised:

    
    class Post < ActiveRecord::Base
      has_many :taggings, :as => :taggable, :dependent => :delete_all
    end
    
    Post.create...
Friday, November 26 2010
5945 after_save callbacks are called before dirty tracking is updated was updated in Ruby on Rails
  • Ari Epstein
    Ari Epstein commented at 5:41 PM

    Hmm... when I did my initial coding on an application where this matters, I could swear that changes got reset before after_save callbacks, but I'm finding this...

Wednesday, November 10 2010
5945 after_save callbacks are called before dirty tracking is updated was updated in Ruby on Rails
  • Ari Epstein
    Ari Epstein commented at 9:59 PM

    No, does not answer my question. The question is when should @previously_changed be populated and changes be cleared? It appears that it is populated AFTER the ...

  • Ari Epstein
    • Tag changed from active_model, active_record, callbacks, dirty to rails 3.0.1, active_model, active_record, callbacks, dirty
    by Ari Epstein at 6:06 PM
  • Ari Epstein
    Ari Epstein created the ticket at 6:05 PM

    Issue:

    Callbacks registered with after_save seem to be called before dirty tracking attributes are updated. Thusly, even though the record is saved, changed att...

5946 [PATCH] should have accessors previous_changes was created in Ruby on Rails
  • Ari Epstein
    Ari Epstein created the ticket at 8:13 PM

    I have found the following accessors helpful for my projects:

    • _previously_changed? -- did the attribute change before the last save?
    • _previous_change -- [ befo...
Saturday, November 07 2009
2121 "warning: default 'to_a' will be obsolete" from method_missing in association... was updated in Ruby on Rails
  • Ari Epstein
    Ari Epstein commented at 3:02 PM

    I resolved this using the suggestion above. Turned out I need to change the following:


    {mkd-extraction-ad9d79ea10d3bb971dfb385a3ee01617}

    To:


    {mkd-extraction-6...
Sunday, August 30 2009
3117 TimeWithZone comparison fails for distinct instances of same time was updated in Ruby on Rails
  • Ari Epstein
    • Tag set to activesupport, datetime, time, timewithzone
    by Ari Epstein at 7:55 PM