Sha256: f4e0bb8635240dbd2f7158b6c8f69b662fd3941d5612f9428725d35c2133fadc

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

require 'passrock/version'
require 'passrock/exceptions'
require 'passrock/configuration'
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.5 lib/passrock.rb