Rails currently doesn''t support the dirty methods for an attribute alias''. i.e. if you setup an alias called title (alias_attribute :title, :name) then title_changed? isn''t defined. Rich has written a simple patch with test so the dirty methods are defined for attribute alias''s -> http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/812 and it''s received a couple of +1''s now. Cheers, Tim. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Could''ve sworn I saw a post like this before. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Tim Haines
2008-Aug-21 03:26 UTC
Re: [Patch for Review] dirty methods on attribute aliases
I dropped it into the rails-talk list (not the core list) on Sunday/Monday. Tim. On 8/21/08, Ryan Bigg <radarlistener@gmail.com> wrote:> > > Could''ve sworn I saw a post like this before. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---