Module: Hello

Defined in:
lib/hello/rails_active_record.rb,
lib/hello.rb,
lib/hello/utils.rb,
lib/hello/engine.rb,
lib/hello/errors.rb,
lib/hello/locales.rb,
lib/hello/version.rb,
lib/hello/business.rb,
lib/hello/encryptors.rb,
lib/hello/middleware.rb,
lib/hello/time_zones.rb,
lib/hello/rails_helper.rb,
lib/hello/business/base.rb,
lib/hello/configuration.rb,
app/mailers/hello/mailer.rb,
lib/hello/request_manager.rb,
lib/hello/rails_controller.rb,
lib/hello/encryptors/simple.rb,
lib/hello/utils/device_name.rb,
lib/hello/encryptors/complex.rb,
lib/hello/request_manager/factory.rb,
lib/hello/rails_active_record/user.rb,
lib/hello/request_manager/abstract.rb,
lib/hello/request_manager/stateful.rb,
lib/hello/request_manager/stateless.rb,
app/helpers/hello/application_helper.rb,
lib/hello/rails_active_record/access.rb,
lib/hello/business/management/add_email.rb,
lib/hello/business/registration/sign_up.rb,
lib/hello/rails_active_record/credential.rb,
lib/hello/business/authentication/sign_in.rb,
lib/hello/request_manager/stateful/finder.rb,
lib/hello/business/authentication/sign_out.rb,
lib/hello/business/management/remove_email.rb,
lib/hello/business/management/confirm_email.rb,
lib/hello/business/management/unlink_access.rb,
lib/hello/rails_controller/restrict_by_role.rb,
lib/hello/business/management/cancel_account.rb,
lib/hello/business/management/reset_password.rb,
lib/hello/business/management/update_profile.rb,
lib/hello/business/management/forgot_password.rb,
lib/hello/rails_active_record/email_credential.rb,
lib/hello/rails_active_record/password_credential.rb,
app/controllers/hello/management/emails_controller.rb,
lib/hello/request_manager/stateful/session_wrapper.rb,
app/controllers/hello/concerns/registration/sign_up.rb,
app/controllers/hello/management/accesses_controller.rb,
app/controllers/hello/management/profiles_controller.rb,
app/controllers/hello/concerns/authentication/sign_in.rb,
app/controllers/hello/management/passwords_controller.rb,
app/controllers/hello/registration/sign_up_controller.rb,
lib/hello/business/internationalization/update_locale.rb,
lib/hello/business/management/send_confirmation_email.rb,
lib/hello/business/authentication/sudo_mode_expiration.rb,
app/controllers/hello/authentication/sign_in_controller.rb,
app/controllers/hello/authentication/sessions_controller.rb,
app/controllers/hello/concerns/management/reset_password.rb,
app/controllers/hello/authentication/sudo_mode_controller.rb,
app/controllers/hello/concerns/management/forgot_password.rb,
app/controllers/hello/management/confirm_emails_controller.rb,
app/controllers/hello/management/reset_password_controller.rb,
lib/hello/business/authentication/sudo_mode_authentication.rb,
app/controllers/hello/management/forgot_password_controller.rb,
app/controllers/hello/internationalization/locale_controller.rb

Overview

this gem requires this file to be here

Defined Under Namespace

Modules: ApplicationHelper, Authentication, Business, Concerns, Encryptors, Errors, Internationalization, Locales, Management, RailsActiveRecord, RailsController, RailsHelper, Registration, RequestManager, TimeZones, Utils Classes: ApplicationController, ConcernsGenerator, Engine, InstallGenerator, LocalesGenerator, Mailer, Middleware, UsersGenerator, ViewsGenerator

Constant Summary collapse

VERSION =
'0.5.1'.freeze

Class Method Summary collapse

Class Method Details

.configurationObject

invoked internally



8
9
10
# File 'lib/hello/configuration.rb', line 8

def self.configuration
  Rails.configuration.hello ||= ActiveSupport::OrderedOptions.new
end

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

invoked from config/initializers/hello.rb

Yields:



3
4
5
# File 'lib/hello/configuration.rb', line 3

def self.configure
  yield(configuration)
end

.rootObject



7
8
9
# File 'lib/hello.rb', line 7

def self.root
  @root ||= Pathname(File.dirname(__FILE__)).join('..')
end

.warning(s2) ⇒ Object



11
12
13
14
# File 'lib/hello.rb', line 11

def self.warning(s2)
  s1 = 'HELLO DEV WARNING:'.black.on_yellow.bold
  puts "#{s1} #{s2.yellow}"
end