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
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
-
.configure {|config| ... } ⇒ Object
Configure BonaFide settings via a block.
- .version ⇒ Object
Class Attribute Details
.config ⇒ Object
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. = "user_cookie"
end
21 22 23 24 |
# File 'lib/bona_fide.rb', line 21 def self.configure @config ||= BonaFide::Configuration.new yield config end |
.version ⇒ Object
2 3 4 |
# File 'lib/bona_fide/version.rb', line 2 def self.version Gem::Version.new("0.1.1") end |