Module: Sequel::Plugins::StateMachineAuditLog::InstanceMethods
- Defined in:
- lib/sequel/plugins/state_machine_audit_log.rb
Instance Method Summary collapse
Instance Method Details
#failed? ⇒ Boolean
54 55 56 57 |
# File 'lib/sequel/plugins/state_machine_audit_log.rb', line 54 def failed? colmap = self.state_machine_column_mappings return colmap[:from_state] == colmap[:to_state] end |
#succeeded? ⇒ Boolean
59 60 61 62 |
# File 'lib/sequel/plugins/state_machine_audit_log.rb', line 59 def succeeded? colmap = self.state_machine_column_mappings return colmap[:from_state] != colmap[:to_state] end |