Exception: Mongoid::Errors::AggregationNameDeprecated

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

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ AggregationNameDeprecated

Returns a new instance of AggregationNameDeprecated.



25
26
27
# File 'lib/gator/errors.rb', line 25

def initialize(token)
  @token = token
end

Instance Method Details

#messageObject



28
29
30
# File 'lib/gator/errors.rb', line 28

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