Skip to content

Commit

Permalink
Added initializer to move state_machine method from protected to publ…
Browse files Browse the repository at this point in the history
…ic, recommended by pluginaweek/state_machine#295
  • Loading branch information
Michael O'Keefe committed Jul 17, 2014
1 parent 621a16f commit 9ee7473
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/initializers/state_machine.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Rails 4.1.0.rc1 and StateMachine don't play nice
# https://github.com/pluginaweek/state_machine/issues/295

require 'state_machine/version'

unless StateMachine::VERSION == '1.2.0'
# If you see this message, please test removing this file
# If it's still required, please bump up the version above
Rails.logger.warn "Please remove me, StateMachine version has changed"
end

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

0 comments on commit 9ee7473

Please sign in to comment.