Method: Ransack::Nodes::Attribute#initialize
- Defined in:
- lib/ransack/nodes/attribute.rb
#initialize(context, name = nil, ransacker_args = []) ⇒ Attribute
Returns a new instance of Attribute.
11 12 13 14 15 |
# File 'lib/ransack/nodes/attribute.rb', line 11 def initialize(context, name = nil, ransacker_args = []) super(context) self.name = name unless name.blank? @ransacker_args = ransacker_args end |