From bd6ed93603a75a421b36ce7b1cbbc214ef71998f 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 Patch suggested in https://github.com/pluginaweek/state_machine/issues/251. TODO: Consider investigating an alternative state machine, e.g. aasm or https://github.com/state-machines/state_machines --- 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