Exception: Mongoid::Errors::AggregationAlreadyDefined

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

Instance Method Summary collapse

Constructor Details

#initialize(klass, token) ⇒ AggregationAlreadyDefined

Returns a new instance of AggregationAlreadyDefined.



15
16
17
18
# File 'lib/gator/errors.rb', line 15

def initialize(klass, token)
  @klass = klass
  @token = token
end

Instance Method Details

#messageObject



19
20
21
# File 'lib/gator/errors.rb', line 19

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