Class: Guise::HasGuisesScope 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.

Direct Known Subclasses

GuiseOfScope

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.



14
15
16
# File 'lib/guise/scopes.rb', line 14

def call
  relation.create_with(association_name => [association_relation.new])
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.



18
19
20
# File 'lib/guise/scopes.rb', line 18

def type
  :has_guises
end