Class: Guise::GuiseForScope Private
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #call ⇒ Object private
- #type ⇒ Object private
Methods inherited from Scope
Constructor Details
This class inherits a constructor from Guise::Scope
Instance Method Details
#call ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
57 58 59 |
# File 'lib/guise/scopes.rb', line 57 def call @options.association_class.where(@options.attribute => @value) end |
#type ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
61 62 63 |
# File 'lib/guise/scopes.rb', line 61 def type :guise_for end |