Sha256: 047be6b273a016ef328175fa8bf581aef8d9f3db648e0e88439004d1b4c0d154
Contents?: true
Size: 565 Bytes
Versions: 22
Compression:
Stored size: 565 Bytes
Contents
module Ransack module Nodes module Bindable attr_accessor :parent, :attr_name def attr @attr ||= ransacker ? ransacker.attr_from(self) : context.table_for(parent)[attr_name] end alias :arel_attribute :attr def ransacker klass._ransackers[attr_name] end def klass @klass ||= context.klassify(parent) end def bound? attr_name.present? && parent.present? end def reset_binding! @parent = @attr_name = @attr = @klass = nil end end end end
Version data entries
22 entries across 22 versions & 2 rubygems