Sha256: 55d05eacd827314cfdf6c82d6065b8724b090232c25bb0fcfaa061ba24764cdc

Contents?: true

Size: 495 Bytes

Versions: 3

Compression:

Stored size: 495 Bytes

Contents

# Rails 4.1.0.rc1 and StateMachine don't play nice
# https://github.com/pluginaweek/state_machine/issues/295

require 'state_machine/version'

if 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

if Rails.version =~ /^4.1./
  module StateMachine::Integrations::ActiveModel
    public :around_validation
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comable_core-0.3.2 lib/comable/state_machine_patch.rb
comable_core-0.3.1 lib/comable/state_machine_patch.rb
comable_core-0.3.0 lib/comable/state_machine_patch.rb