Module: Statesman::MultiState::Reflection::ReflectionExtension

Defined in:
lib/statesman/multi_state/reflection.rb

Instance Method Summary collapse

Instance Method Details

#add_state_machine_reflection(model, name, reflection) ⇒ Object



15
16
17
# File 'lib/statesman/multi_state/reflection.rb', line 15

def add_state_machine_reflection(model, name, reflection)
  model.state_machine_reflections = model.state_machine_reflections.merge(name.to_s => reflection)
end