Module: EnumerationHelper

Defined in:
frontend/app/helpers/enumeration_helper.rb

Instance Method Summary collapse

Instance Method Details

#enumeration_advanced_query(relationships, value) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'frontend/app/helpers/enumeration_helper.rb', line 5

def enumeration_advanced_query(relationships, value)
  query = AdvancedQueryBuilder.new

  relationships.each do |rel|
    query.or("#{rel}_enum_s", value, 'text', true)
  end

  query.build.to_json
end