Exception: ActsAsApprovable::Error::InvalidTransition

Inherits:
ActsAsApprovable::Error show all
Defined in:
lib/acts_as_approvable/error.rb

Instance Method Summary collapse

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