class Ransack::Nodes::Attribute

def valid?

def valid?
  bound? && attr &&
  context.klassify(parent).ransackable_attributes(context.auth_object)
  .include?(attr_name.split('.').last)
end