Module: Wherewolf::ClassMethods
- Defined in:
- lib/wherewolf.rb
Instance Method Summary collapse
Instance Method Details
#has_query_parsing(options = {}) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/wherewolf.rb', line 14 def has_query_parsing( = {}) self.class_eval do cattr_accessor :wherewolf_options scope :where_query, lambda { |query| Wherewolf::Where::Processor.parse(self, query) } scope :order_query, lambda { |query| Wherewolf::Order::Processor.parse(self, query) } self. = end end |