On 15 December 2010 17:01, Tim Shaffer <[email protected]> wrote: > You could just use a method instead... > > class User < ActiveRecord::Base > > has_many :payments > > def testing_payments > payments.where(:testing => testing) > end
That would be even better as a named scope. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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-talk?hl=en.

