Exception: Secretary::NotVersionedError
- Inherits:
-
StandardError
- Object
- StandardError
- Secretary::NotVersionedError
- Defined in:
- lib/secretary/errors.rb
Instance Method Summary collapse
-
#initialize(klass = nil) ⇒ NotVersionedError
constructor
A new instance of NotVersionedError.
- #message ⇒ Object
Constructor Details
#initialize(klass = nil) ⇒ NotVersionedError
Returns a new instance of NotVersionedError.
3 4 5 |
# File 'lib/secretary/errors.rb', line 3 def initialize(klass=nil) @klass = klass end |
Instance Method Details
#message ⇒ Object
7 8 9 10 |
# File 'lib/secretary/errors.rb', line 7 def "Can't track an association on an unversioned model " \ "(#{@klass}) Did you declare `has_secretary` first?" end |