Module: ActiveSet::Filtering::ActiveRecord::QueryValue

Included in:
SetInstruction
Defined in:
lib/active_set/filtering/active_record/query_value.rb

Instance Method Summary collapse

Instance Method Details

#query_valueObject



7
8
9
10
11
12
13
14
15
# File 'lib/active_set/filtering/active_record/query_value.rb', line 7

def query_value
  return @query_value if defined? @query_value

  query_value = @attribute_instruction.value
  query_value = query_attribute_for(query_value)
  query_value = query_value.downcase if case_insensitive_operation?

  @query_value = query_value
end