Class: Guise::GuiseForScope Private

Inherits:
Scope
  • Object
show all
Defined in:
lib/guise/scopes.rb

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

Methods inherited from Scope

#initialize

Constructor Details

This class inherits a constructor from Guise::Scope

Instance Method Details

#callObject

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

#typeObject

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