Sha256: 470946ea53f79d343d6ca388a183905daae288eee6c56848198a44b8f21eddff

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

require 'passrock/version'
require 'passrock/exceptions'
require 'passrock/configuration'
require 'passrock/password_db_finder'
require 'passrock/password_db'

require 'passrock/railtie' if defined?(::Rails::Railtie)
require 'active_model/validations/passrock_secure_validator' if defined?(::ActiveModel)

module Passrock

  class << self

    def configuration
      @configuration ||= Configuration.new
    end

    def configure(&block)
      yield(configuration)
      configuration
    end

    def reset_configuration!
      @configuration = nil
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passrock-0.0.8 lib/passrock.rb