Skip to content

Commit

Permalink
workaround for state_machine in Rails 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Nov 3, 2014
1 parent a0d9374 commit 365ede8
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.x 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 365ede8

Please sign in to comment.