Exception: CouchFoo::HasManyThroughSourceAssociationMacroError
- Inherits:
-
CouchFooError
- Object
- StandardError
- CouchFooError
- CouchFoo::HasManyThroughSourceAssociationMacroError
- Defined in:
- lib/couch_foo/associations.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(reflection) ⇒ HasManyThroughSourceAssociationMacroError
constructor
A new instance of HasManyThroughSourceAssociationMacroError.
Constructor Details
#initialize(reflection) ⇒ HasManyThroughSourceAssociationMacroError
Returns a new instance of HasManyThroughSourceAssociationMacroError.
40 41 42 43 44 |
# File 'lib/couch_foo/associations.rb', line 40 def initialize(reflection) through_reflection = reflection.through_reflection source_reflection = reflection.source_reflection super("Invalid source reflection macro :#{source_reflection.macro}#{" :through" if source_reflection.[:through]} for has_many #{reflection.name.inspect}, :through => #{through_reflection.name.inspect}. Use :source to specify the source reflection.") end |