Skip to content

protected method `around_validation' ERROR #348

Description

@kaiomagalhaes

While using the gem with rails 4.2 I have faced the following issue:

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

To fix this I have to add a monkey patch.
I added the following code inside config/initializers/state_machine_patch.rb

module StateMachine
  module Integrations
    module ActiveModel
      public :around_validation
    end
  end
end

There is any best way to fix it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions