Josh Peek
2007-Aug-22 23:44 UTC
AR Associations: Don''t clobber :extend options with a block
Right now, blocks passed to an association macro clobber the :extend
options. This patch merges the :extend options and block instead.
has_many :projects, :extend => SomeAssociationExtension do
def find_least_recent
find(:first, :order => "id ASC")
end
end
http://dev.rubyonrails.org/ticket/9346
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---