Module: Mobility::Plugins::Sequel::Query

Defined in:
lib/mobility/plugins/sequel/query.rb

Defined Under Namespace

Modules: QueryBuilder, QueryExtension

Class Method Summary collapse

Class Method Details

.apply(attributes) ⇒ Object


12
13
14
15
16
17
# File 'lib/mobility/plugins/sequel/query.rb', line 12

def apply(attributes)
  attributes.model_class.class_eval do
    extend QueryMethod
    singleton_class.send :alias_method, Mobility.query_method, :__mobility_query_dataset__
  end
end