class ActsAsExplorable::Element::DynamicFilter
Generates a where
clause to look up the searched string in the given columns
Public Instance Methods
after_init()
click to toggle source
# File lib/acts_as_explorable/element/dynamic_filter.rb, line 6 def after_init @query_type = :where end
render()
click to toggle source
# File lib/acts_as_explorable/element/dynamic_filter.rb, line 10 def render @query_parts << table[type].lower.in(@parameters) @full_query = @query_parts.first end