class Ransack::Nodes::Attribute
def associated_collection?
def associated_collection? parent.respond_to?(:reflection) && parent.reflection.collection? end
def eql?(other)
def eql?(other) self.class == other.class && self.name == other.name end
def hash
def hash self.name.hash end
def initialize(context, name = nil, ransacker_args = [])
def initialize(context, name = nil, ransacker_args = []) super(context) self.name = name unless name.blank? @ransacker_args = ransacker_args end
def inspect
def inspect "Attribute <#{name}>" end
def name=(name)
def name=(name) @name = name end
def persisted?
def persisted? false end
def type
def type if ransacker ransacker.type else context.type_for(self) end end
def valid?
def valid? bound? && attr && context.klassify(parent).ransackable_attributes(context.auth_object) .include?(attr_name.split('.').last) end