diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-06-02 12:20:56 +0400 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-06-03 13:37:23 +0400 |
commit | 9abee4eac80852be502f1cc35cedae063d314e45 (patch) | |
tree | 1451a4a8cf38922a315e9720bc1516a7077fd367 /config | |
parent | 79f8abc51fa876e12de4150ab3ec489208aaed84 (diff) |
Add a state_machine patch for rails 4.1.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/state_machine_patch.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/initializers/state_machine_patch.rb b/config/initializers/state_machine_patch.rb new file mode 100644 index 00000000000..a446b6275c4 --- /dev/null +++ b/config/initializers/state_machine_patch.rb @@ -0,0 +1,9 @@ +# This is a patch to address the issue in https://github.com/pluginaweek/state_machine/issues/251 +# where gem 'state_machine' was not working for Rails 4.1 +module StateMachine + module Integrations + module ActiveModel + public :around_validation + end + end +end |