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

Extended by:
Mobility::Plugin
Defined in:
lib/mobility/plugins/sequel/query.rb

Defined Under Namespace

Modules: QueryBuilder, QueryExtension

Class Method Summary collapse

Methods included from Mobility::Plugin

configure, configure_default, default, dependencies, dependencies_satisfied?, included, included_hook, initialize_hook, requires

Class Method Details

.build_query(klass, locale = Mobility.locale, &block) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/mobility/plugins/sequel/query.rb', line 31

def build_query(klass, locale = Mobility.locale, &block)
  if block_given?
    VirtualRow.build_query(klass, locale, &block)
  else
    klass.dataset.with_extend(QueryExtension)
  end
end