Module: Headstart

Defined in:
lib/headstart/user.rb,
lib/headstart/routes.rb,
lib/headstart/configuration.rb,
lib/headstart/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.



22
23
24
# File 'lib/headstart/configuration.rb', line 22

def configuration
  @configuration
end

Class Method Details

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

Configure Headstart someplace sensible, like config/initializers/headstart.rb

Examples:

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

Yields:



33
34
35
36
# File 'lib/headstart/configuration.rb', line 33

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