Class: Mobility::Plugins::Arel::Visitor

Inherits:
Arel::Visitors::Visitor
  • Object
show all
Defined in:
lib/mobility/plugins/arel.rb

Constant Summary collapse

INNER_JOIN =
::Arel::Nodes::InnerJoin
OUTER_JOIN =
::Arel::Nodes::OuterJoin

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(backend_class, locale) ⇒ Visitor

Returns a new instance of Visitor.



62
63
64
65
# File 'lib/mobility/plugins/arel.rb', line 62

def initialize(backend_class, locale)
  super()
  @backend_class, @locale = backend_class, locale
end

Instance Attribute Details

#backend_classObject (readonly)

Returns the value of attribute backend_class.



60
61
62
# File 'lib/mobility/plugins/arel.rb', line 60

def backend_class
  @backend_class
end

#localeObject (readonly)

Returns the value of attribute locale.



60
61
62
# File 'lib/mobility/plugins/arel.rb', line 60

def locale
  @locale
end