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, ImpersonationsController, PasswordsController, Routes, SessionsController, UsersController

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



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

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:



28
29
30
31
# File 'lib/blue_light_special/configuration.rb', line 28

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