Sha256: 4d7eb79200ef08dc9de03818a00b0ea620bc1f1f8083e7a7f42b1bd43b1c474a

Contents?: true

Size: 432 Bytes

Versions: 3

Compression:

Stored size: 432 Bytes

Contents

module Stateflow
  module Persistence
    def self.set(base)
      case Stateflow.persistence
        when :mongo_mapper
          Stateflow::Persistence::MongoMapper.install(base)
        when :active_record
          Stateflow::Persistence::ActiveRecord.install(base)
      end
    end
    
    autoload :MongoMapper, 'stateflow/persistence/mongo_mapper'
    autoload :ActiveRecord, 'stateflow/persistence/active_record'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stateflow-0.0.4 lib/stateflow/persistence.rb
stateflow-0.0.3 lib/stateflow/persistence.rb
stateflow-0.0.2 lib/stateflow/persistence.rb