forked from lagotto/lagotto
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workaround for state_machine in Rails 4
- Loading branch information
Martin Fenner
committed
Nov 3, 2014
1 parent
a0d9374
commit 365ede8
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |