mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add state machine patch to fix error with state machine
See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267
This commit is contained in:
11
config/initializers/state_machine_patch.rb
Normal file
11
config/initializers/state_machine_patch.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module StateMachine
|
||||
module Integrations
|
||||
module ActiveModel
|
||||
public :around_validation
|
||||
end
|
||||
|
||||
module ActiveRecord
|
||||
public :around_save
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user