Class: ListsConstant::Lookups::Instance

Inherits:
Module
  • Object
show all
Defined in:
lib/lists_constant/lookups/instance.rb

Instance Method Summary collapse

Constructor Details

#initialize(field, values) ⇒ Instance



7
8
9
10
11
12
# File 'lib/lists_constant/lookups/instance.rb', line 7

def initialize field, values
  @field = field
  @values = values

  super()
end

Instance Method Details

#included(base) ⇒ Object



14
15
16
17
# File 'lib/lists_constant/lookups/instance.rb', line 14

def included base
  add_localized_lookups base
  add_query_methods base
end