Displaying 1 result from an estimated 1 matches for "rated_at_or_abov".
Did you mean:
rated_at_or_above
2007 Jan 31
1
help with extensions
...ut
I want to know if it''s possible to instead have the finder method look at
attributes of the object on which the finder method is ultimately being
executed (here, user) to determine the conditions.
class User
has_many :reading
has_many :articles, :through => :readings do
def rated_at_or_above(rating) # this is the finder
method in AWD -- works fine
find :all, :conditions => [''rating >= ?'', rating]
end
def rated_at_or_above_threshold # but can I do something
like this? (doesn''t work)
find :all, :con...