Exception: Mongoid::Tracking::Errors::AggregationAlreadyDefined

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/mongoid/tracking/errors.rb

Instance Method Summary collapse

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

#messageObject



20
21
22
# File 'lib/mongoid/tracking/errors.rb', line 20

def message
  "Aggregation '#{@token}' already defined for model #{@klass}"
end