Module: TwoStep
- Defined in:
- lib/two_step.rb,
lib/two_step/engine.rb,
lib/two_step/version.rb,
lib/two_step/backup_codes.rb,
lib/two_step/configuration.rb,
app/jobs/two_step/application_job.rb,
lib/two_step/models/authenticatable.rb,
app/models/two_step/application_record.rb,
app/helpers/two_step/application_helper.rb,
app/mailers/two_step/application_mailer.rb,
lib/generators/two_step/install_generator.rb,
app/controllers/two_step/application_controller.rb,
app/controllers/two_step/two_step_setups_controller.rb,
app/controllers/two_step/two_step_challenges_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, BackupCodes, Models
Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Configuration, Engine, InstallGenerator, TwoStepChallengesController, TwoStepSetupsController
Constant Summary
collapse
- VERSION =
"1.0.1"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
116
117
118
|
# File 'lib/two_step/configuration.rb', line 116
def configuration
@configuration ||= Configuration.new
end
|
120
121
122
123
|
# File 'lib/two_step/configuration.rb', line 120
def configure
yield(configuration) if block_given?
configuration
end
|
.reset_configuration! ⇒ Object
125
126
127
|
# File 'lib/two_step/configuration.rb', line 125
def reset_configuration!
@configuration = Configuration.new
end
|