Sha256: 369e4983e7a98d2ef161a0641758fb39bb8c41da67c94faae955cffdef63b25f

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

require 'active_record'
require 'has_states/version'
require 'has_states/configuration'
require 'has_states/configuration/model_configuration'
require 'has_states/configuration/state_type_configuration'

module HasStates
  class << self
    def configure
      yield(configuration)
    end
    
    def configuration
      Configuration.instance
    end
  end
end

require 'has_states/base'
require 'has_states/state'
require 'has_states/callback'
require 'has_states/stateable'
require 'has_states/railtie' if defined?(Rails)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stateful_models-0.0.3 lib/has_states.rb
stateful_models-0.0.2 lib/has_states.rb