Module: RailsMFA
- Defined in:
- lib/rails_mfa.rb,
lib/rails_mfa/model.rb,
lib/rails_mfa/version.rb,
lib/rails_mfa/configuration.rb,
lib/rails_mfa/token_manager.rb,
lib/rails_mfa/providers/base.rb,
lib/rails_mfa/providers/sms_provider.rb,
lib/rails_mfa/providers/email_provider.rb
Defined Under Namespace
Modules: Model, Providers Classes: Configuration, Error, SimpleStore, TokenManager
Constant Summary collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
15 16 17 |
# File 'lib/rails_mfa.rb', line 15 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
17 18 19 20 |
# File 'lib/rails_mfa.rb', line 17 def configure self.configuration ||= Configuration.new yield(configuration) if block_given? end |