Sha256: c007891a6a61798d221e371e63ca22c3b9626f4e5b087420c1b479d56a8b1954

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

require 'bona_fide/configuration'
require 'bona_fide/constraint'
require 'bona_fide/version'
if defined?(Rails)
  require 'bona_fide/engine'
end

module BonaFide
  class << self
    attr_accessor :config
  end

  # Configure BonaFide settings via a block
  # 
  #   BonaFide.configure do |config|
  #     config.base_class = User
  #     config.setter = :authenticate
  #     config.cookie_name = "user_cookie"
  #   end
  #
  def self.configure
    @config ||= BonaFide::Configuration.new
    yield config
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bona_fide-0.1.1 lib/bona_fide.rb
bona_fide-0.1.0 lib/bona_fide.rb