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

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

Instance Method Summary collapse

Instance Method Details

#backend_op(name, locale = Mobility.locale) ⇒ Arel::Node

Return backend node for attribute name.

Parameters:

  • name (Symbol, String)

    Name of attribute

  • locale (Symbol) (defaults to: Mobility.locale)

    Locale

Returns:

  • (Arel::Node)

    Arel node for this attribute in given locale



114
115
116
# File 'lib/mobility/plugins/sequel/query.rb', line 114

def backend_op(name, locale = Mobility.locale)
  model.mobility_backend_class(name)[name, locale]
end