Module: Stateflow::Persistence
- Defined in:
- lib/stateflow/persistence.rb,
lib/stateflow/persistence/none.rb,
lib/stateflow/persistence/mongoid.rb,
lib/stateflow/persistence/mongo_mapper.rb,
lib/stateflow/persistence/active_record.rb
Defined Under Namespace
Modules: ActiveRecord, MongoMapper, Mongoid, None
Class Method Summary collapse
Class Method Details
.set(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/stateflow/persistence.rb', line 3 def self.set(base) case Stateflow.persistence when :mongo_mapper Stateflow::Persistence::MongoMapper.install(base) when :active_record Stateflow::Persistence::ActiveRecord.install(base) when :mongoid Stateflow::Persistence::Mongoid.install(base) when :none Stateflow::Persistence::None.install(base) end end |