Exception: ActsAsApprovable::Error::InvalidTransition
- Inherits:
-
ActsAsApprovable::Error
- Object
- RuntimeError
- ActsAsApprovable::Error
- ActsAsApprovable::Error::InvalidTransition
- Defined in:
- lib/acts_as_approvable/error.rb
Instance Method Summary collapse
-
#initialize(from, to, approval) ⇒ InvalidTransition
constructor
A new instance of InvalidTransition.
Constructor Details
#initialize(from, to, approval) ⇒ InvalidTransition
Returns a new instance of InvalidTransition.
29 30 31 |
# File 'lib/acts_as_approvable/error.rb', line 29 def initialize(from, to, approval) super("you may not transition from #{from} to #{to} in a #{approval.event} approval") end |