From 4b01ef0208cddadec66891204db96a42a6d24982 Mon Sep 17 00:00:00 2001 From: Chris Roos Date: Mon, 15 May 2017 18:26:18 +0100 Subject: [PATCH] Patch StateMachine Gem to avoid errors This fixes the following errors we're seeing: > NoMethodError: protected method `around_validation' called for > # The patch was suggested in https://github.com/pluginaweek/state_machine/issues/251. It would appear that this StateMachine Gem is no longer maintained so we might want to consider upgrading to an alternative in future. --- config/initializers/state_machine_patch.rb | 7 +++++++ 1 file changed, 7 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 000000000..b579f9588 --- /dev/null +++ b/config/initializers/state_machine_patch.rb @@ -0,0 +1,7 @@ +module StateMachine + module Integrations + module ActiveModel + public :around_validation + end + end +end