class RansackWrap::Scopes
Attributes
object[R]
Public Class Methods
new(object)
click to toggle source
# File lib/ransack_wrap/scopes.rb, line 6 def initialize(object) @object = object end
Public Instance Methods
attribute_method?(attr_name)
click to toggle source
# File lib/ransack_wrap/scopes.rb, line 14 def attribute_method?(attr_name) respond_to_without_attributes?(:attributes) && attr_name.in?(attributes) end
scoped()
click to toggle source
# File lib/ransack_wrap/scopes.rb, line 10 def scoped object.scoped end
try_scope(name, args)
click to toggle source
# File lib/ransack_wrap/scopes.rb, line 18 def try_scope(name, args) return unless args.present? self.try "scope_#{name}", args end