Vijay Dev <vijaydev.cse@...> writes:
>
>
> Given a school model and a student model with the school having a has_many
relation to student:
>
> has_many :students, :conditions => proc { "year_id=#{send
(:active_year_id)}" }
That smells like it belongs in a named scope on the School rather than on the
relationship.
--
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.