Module: Toll
- Defined in:
- lib/toll.rb,
lib/toll/version.rb,
lib/toll/interface.rb,
lib/toll/models/authenticable.rb,
lib/generators/toll/orm_helpers.rb,
lib/generators/toll/toll_generator.rb,
lib/toll/controllers/authenticable.rb,
lib/generators/toll/install_generator.rb
Defined Under Namespace
Modules: Controllers, Generators, Interface, Models
Constant Summary collapse
- VERSION =
"0.1.0"
- @@authentication_keys =
[:email]
- @@authentication_token_attribute_name =
:authentication_token
- @@authentication_token_length =
64
Class Method Summary collapse
-
.setup {|_self| ... } ⇒ Object
Method to configure Toll.
-
.token(length = Toll.authentication_token_length) ⇒ Object
Method to generate a Token.
Class Method Details
.setup {|_self| ... } ⇒ Object
Method to configure Toll
16 17 18 |
# File 'lib/toll.rb', line 16 def self.setup yield self end |
.token(length = Toll.authentication_token_length) ⇒ Object
Method to generate a Token
22 23 24 |
# File 'lib/toll.rb', line 22 def self.token(length = Toll.authentication_token_length) SecureRandom.urlsafe_base64(length) end |