Sha256: d7ce0ba358ad7cdd2c44c2dc25cde039aac3a5e5b22d0951cc79b0a6e96ac712
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
module Statesman autoload :Config, 'statesman/config' autoload :Machine, 'statesman/machine' autoload :Callback, 'statesman/callback' autoload :Guard, 'statesman/guard' autoload :Utils, 'statesman/utils' autoload :Version, 'statesman/version' module Adapters autoload :Memory, "statesman/adapters/memory" autoload :ActiveRecord, "statesman/adapters/active_record" autoload :ActiveRecordTransition, "statesman/adapters/active_record_transition" autoload :ActiveRecordQueries, "statesman/adapters/active_record_queries" autoload :Mongoid, "statesman/adapters/mongoid" autoload :MongoidTransition, "statesman/adapters/mongoid_transition" end require 'statesman/railtie' if defined?(::Rails::Railtie) # Example: # Statesman.configure do # storage_adapter Statesman::ActiveRecordAdapter # end # def self.configure(&block) config = Config.new(block) @storage_adapter = config.adapter_class end def self.storage_adapter @storage_adapter || Adapters::Memory end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
statesman-3.2.0 | lib/statesman.rb |
statesman-3.1.0 | lib/statesman.rb |