Method: Ransack::Nodes::Condition#inspect
- Defined in:
- lib/ransack/nodes/condition.rb
#inspect ⇒ Object
269 270 271 272 273 274 275 276 277 278 279 280 |
# File 'lib/ransack/nodes/condition.rb', line 269 def inspect data = [ ['attributes'.freeze, a.try(:map, &:name)], ['predicate'.freeze, p], [Constants::COMBINATOR, m], ['values'.freeze, v.try(:map, &:value)] ] .reject { |e| e[1].blank? } .map { |v| "#{v[0]}: #{v[1]}" } .join(', '.freeze) "Condition <#{data}>" end |