activerecord-hackery / squeel

Active Record, improved. Live again :)
http://erniemiller.org/2013/11/17/anyone-interested-in-activerecord-hackery/
MIT License
2.4k stars 214 forks source link

adapt one scope #310

Closed Ridor closed 10 years ago

Ridor commented 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

ernie commented 10 years ago

This is not the place for general questions about usage. See the README for syntax info.