Module: BlueLightSpecial

Defined in:
lib/blue_light_special/user.rb,
lib/blue_light_special/routes.rb,
lib/blue_light_special/configuration.rb,
lib/blue_light_special/authentication.rb

Defined Under Namespace

Modules: Authentication, User Classes: Configuration, ConfirmationsController, ImpersonationsController, PasswordsController, Routes, SessionsController, UsersController

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



19
20
21
# File 'lib/blue_light_special/configuration.rb', line 19

def configuration
  @configuration
end

Class Method Details

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

Configure BlueLightSpecial someplace sensible, like config/initializers/blue_light_special.rb

Examples:

BlueLightSpecial.configure do |config|
  config.mailer_sender = '[email protected]'
  config.impersonation_hash = 'abc123def456...'
end

Yields:



30
31
32
33
# File 'lib/blue_light_special/configuration.rb', line 30

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end