Exception: Mongoid::Tracking::Errors::AggregationAlreadyDefined
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Mongoid::Tracking::Errors::AggregationAlreadyDefined
- Defined in:
- lib/mongoid/tracking/errors.rb
Instance Method Summary collapse
-
#initialize(klass, token) ⇒ AggregationAlreadyDefined
constructor
A new instance of AggregationAlreadyDefined.
- #message ⇒ Object
Constructor Details
#initialize(klass, token) ⇒ AggregationAlreadyDefined
Returns a new instance of AggregationAlreadyDefined.
16 17 18 19 |
# File 'lib/mongoid/tracking/errors.rb', line 16 def initialize(klass, token) @klass = klass @token = token end |
Instance Method Details
#message ⇒ Object
20 21 22 |
# File 'lib/mongoid/tracking/errors.rb', line 20 def "Aggregation '#{@token}' already defined for model #{@klass}" end |