associations.rb:1368:in `const_set'': wrong constant name
Blog::Models::UserEntriesAssociationExtension (NameError)
class User < Base
has_many :entries do
def find_recent
# code
end
end
end
any hints what needs to be done to make it unsurprising (pols-friendly) to
work with camping+activerecord?
anyone else tried has_finder?.
cheers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/camping-list/attachments/20080821/5e48ea0f/attachment.html>
This way works:
module RecentFinder
def find_recent
end
end
class User < Base
has_many :entries, :extend=>RecentFinder
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/camping-list/attachments/20080821/06f25aee/attachment.html>