Module: BonaFide

Defined in:
lib/bona_fide.rb,
lib/bona_fide/engine.rb,
lib/bona_fide/session.rb,
lib/bona_fide/version.rb,
lib/bona_fide/constraint.rb,
lib/bona_fide/configuration.rb

Defined Under Namespace

Modules: VERSION Classes: Configuration, Constraint, Engine, Session

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



10
11
12
# File 'lib/bona_fide.rb', line 10

def config
  @config
end

Class Method Details

.configure {|config| ... } ⇒ Object

Configure BonaFide settings via a block

BonaFide.configure do |config|
  config.base_class = User
  config.setter = :authenticate
  config.cookie_name = "user_cookie"
end

Yields:



21
22
23
24
# File 'lib/bona_fide.rb', line 21

def self.configure
  @config ||= BonaFide::Configuration.new
  yield config
end

.versionObject



2
3
4
# File 'lib/bona_fide/version.rb', line 2

def self.version
  Gem::Version.new("0.1.1")
end