search for: source_scop

Displaying 1 result from an estimated 1 matches for "source_scop".

Did you mean: source_scope
2012 Jul 05
2
Addition to has_many - a ':source_scope' option
Was looking to work on a small addition (to has_many) which will be useful to me and others alike. A few technical details about the addition: Basically wanting to have something like, has_many :subscribers, through: :subscriptions, *source_scope:* :deleted We currently have to do this in our code as, has_many :subscribers, through: :subscriptions, conditions: ''subscriptions.deleted_at IS NOT NULL'' even though Subscription model has already got a :deleted scope. Wouldn''t it be nice to have something like *:s...