Closed Ridor closed 10 years ago
hi, how i can adapt this scope (compatible with gem metha_where) with squeel: class ActivatedSource < ActiveRecord::Base scope :by_provider, lambda { |type| joins(:source) & Source.by_provider(type) } ... end thanks
This is not the place for general questions about usage. See the README for syntax info.
hi, how i can adapt this scope (compatible with gem metha_where) with squeel: class ActivatedSource < ActiveRecord::Base scope :by_provider, lambda { |type| joins(:source) & Source.by_provider(type) } ... end thanks