Exception: Mongoid::Tracking::Errors::AggregationNameDeprecated

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

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ AggregationNameDeprecated

Returns a new instance of AggregationNameDeprecated.



26
27
28
# File 'lib/mongoid/tracking/errors.rb', line 26

def initialize(token)
  @token = token
end

Instance Method Details

#messageObject



29
30
31
# File 'lib/mongoid/tracking/errors.rb', line 29

def message
  "Ussing aggregation name '#{@klass}' is deprecated. Please select another name."
end