Skip to content

Commit

Permalink
Patch StateMachine Gem to avoid errors
Browse files Browse the repository at this point in the history
This fixes the following errors we're seeing:

> NoMethodError: protected method `around_validation' called for
> #<StateMachine::Machine:0x00000004382b98>

The patch was suggested in
pluginaweek/state_machine#251.

It would appear that this StateMachine Gem is no longer maintained so we
might want to consider upgrading to an alternative in future.
  • Loading branch information
chrisroos committed May 16, 2017
1 parent 3bcf547 commit 4b01ef0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/initializers/state_machine_patch.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module StateMachine
module Integrations
module ActiveModel
public :around_validation
end
end
end

0 comments on commit 4b01ef0

Please sign in to comment.