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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---