Exception: Mongoid::Tracking::Errors::ClassAlreadyDefined

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

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ ClassAlreadyDefined

Returns a new instance of ClassAlreadyDefined.



7
8
9
# File 'lib/mongoid/tracking/errors.rb', line 7

def initialize(klass)
  @klass = klass
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/mongoid/tracking/errors.rb', line 10

def message
  "#{@klass} already defined, can't aggregate!"
end