From 9abee4eac80852be502f1cc35cedae063d314e45 Mon Sep 17 00:00:00 2001 From: Marin Jankovski Date: Mon, 2 Jun 2014 10:20:56 +0200 Subject: [PATCH] Add a state_machine patch for rails 4.1. --- config/initializers/state_machine_patch.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/initializers/state_machine_patch.rb 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