Module: StateMachine::Integrations::ActiveModel::ClassMethods
- Included in:
- StateMachine::Integrations::ActiveModel
- Defined in:
- lib/state_machine/integrations/active_model.rb
Instance Attribute Summary collapse
-
#defaults ⇒ Object
readonly
The default options to use for state machines using this integration.
Instance Method Summary collapse
-
#extended(base) ⇒ Object
Loads additional files specific to ActiveModel.
Instance Attribute Details
#defaults ⇒ Object (readonly)
The default options to use for state machines using this integration
219 220 221 |
# File 'lib/state_machine/integrations/active_model.rb', line 219 def defaults @defaults end |
Instance Method Details
#extended(base) ⇒ Object
Loads additional files specific to ActiveModel
222 223 224 225 226 227 228 229 |
# File 'lib/state_machine/integrations/active_model.rb', line 222 def extended(base) #:nodoc: require 'state_machine/integrations/active_model/observer' if defined?(I18n) locale = "#{File.dirname(__FILE__)}/active_model/locale.rb" I18n.load_path.unshift(locale) unless I18n.load_path.include?(locale) end end |