Commit 9abee4eac80852be502f1cc35cedae063d314e45

Authored by Marin Jankovski
1 parent 79f8abc5

Add a state_machine patch for rails 4.1.

Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
config/initializers/state_machine_patch.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +# This is a patch to address the issue in https://github.com/pluginaweek/state_machine/issues/251
  2 +# where gem 'state_machine' was not working for Rails 4.1
  3 +module StateMachine
  4 + module Integrations
  5 + module ActiveModel
  6 + public :around_validation
  7 + end
  8 + end
  9 +end
... ...