jeanmartin-aasm 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/state_transition.rb +1 -1
  2. metadata +1 -1
@@ -25,7 +25,7 @@ module AASM
25
25
  end
26
26
 
27
27
  # Catch generic false return with no exception raised
28
- raise(GuardFailure, I18n.t('activerecord.errors.messages.guard_fail', :default => 'guard condition(s) failed')) unless result
28
+ raise(GuardFailure, I18n.t('activerecord.errors.messages.guard_fail', :default => 'guard condition(s) failed')) unless guard_result
29
29
 
30
30
  rescue GuardFailure => e
31
31
  obj.errors.send(:add, obj.class.aasm_column.to_sym, e.message)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeanmartin-aasm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Barron