Exception: Mongoid::Tracking::Errors::ClassAlreadyDefined
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Mongoid::Tracking::Errors::ClassAlreadyDefined
- Defined in:
- lib/mongoid/tracking/errors.rb
Instance Method Summary collapse
-
#initialize(klass) ⇒ ClassAlreadyDefined
constructor
A new instance of ClassAlreadyDefined.
- #message ⇒ Object
Constructor Details
#initialize(klass) ⇒ ClassAlreadyDefined
Returns a new instance of ClassAlreadyDefined.
7 8 9 |
# File 'lib/mongoid/tracking/errors.rb', line 7 def initialize(klass) @klass = klass end |
Instance Method Details
#message ⇒ Object
10 11 12 |
# File 'lib/mongoid/tracking/errors.rb', line 10 def "#{@klass} already defined, can't aggregate!" end |