Method: Ransack::Nodes::Grouping#attribute_method?
- Defined in:
- lib/ransack/nodes/grouping.rb
#attribute_method?(name) ⇒ Boolean
124 125 126 127 128 129 130 131 132 |
# File 'lib/ransack/nodes/grouping.rb', line 124 def attribute_method?(name) name = strip_predicate_and_index(name) case name when /^(g|c|m|groupings|conditions|combinator)=?$/ true else name.split(/_and_|_or_/).select {|n| !@context.attribute_method?(n)}.empty? end end |