Method: Ransack::Nodes::Condition#predicate_name=

Defined in:
lib/ransack/nodes/condition.rb

#predicate_name=(name) ⇒ Object Also known as: p=



204
205
206
207
208
209
210
# File 'lib/ransack/nodes/condition.rb', line 204

def predicate_name=(name)
  self.predicate = Predicate.named(name)
  unless negative?
    attributes.each { |a| context.lock_association(a.parent) }
  end
  @predicate
end