Module: BetterAuthy

Defined in:
lib/better_authy.rb,
lib/better_authy/engine.rb,
lib/better_authy/errors.rb,
lib/better_authy/version.rb,
lib/better_authy/configuration.rb,
lib/better_authy/model_extensions.rb,
lib/better_authy/controller_helpers.rb,
app/models/better_authy/session_form.rb,
lib/better_authy/scope_configuration.rb,
lib/better_authy/models/authenticable.rb,
app/helpers/better_authy/application_helper.rb,
app/mailers/better_authy/application_mailer.rb,
app/models/better_authy/reset_password_form.rb,
app/controllers/better_authy/base_controller.rb,
app/models/better_authy/forgot_password_form.rb,
app/mailers/better_authy/password_reset_mailer.rb,
app/controllers/better_authy/sessions_controller.rb,
app/controllers/better_authy/passwords_controller.rb,
app/controllers/better_authy/registrations_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, ControllerHelpers, ModelExtensions, Models Classes: ApplicationMailer, BaseController, Configuration, ConfigurationError, Engine, Error, ForgotPasswordForm, PasswordResetMailer, PasswordsController, RegistrationsController, ResetPasswordForm, ScopeConfiguration, SessionForm, SessionsController

Constant Summary collapse

VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.configuration ⇒ Object



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

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



17
18
19
# File 'lib/better_authy.rb', line 17

def configure
  yield(configuration)
end

.reset_configuration! ⇒ Object



25
26
27
# File 'lib/better_authy.rb', line 25

def reset_configuration!
  @configuration = Configuration.new
end

.scope_for(name) ⇒ Object



29
30
31
# File 'lib/better_authy.rb', line 29

def scope_for(name)
  configuration.scope_for(name)
end

.scope_for!(name) ⇒ Object



33
34
35
# File 'lib/better_authy.rb', line 33

def scope_for!(name)
  configuration.scope_for!(name)
end