Module: Yellin
- Defined in:
- lib/yellin.rb,
lib/yellin/engine.rb,
lib/yellin/version.rb,
lib/yellin/acts_as_user.rb,
app/mailers/yellin/user_mailer.rb,
app/jobs/yellin/application_job.rb,
app/helpers/yellin/sessions_helper.rb,
app/models/yellin/application_record.rb,
app/helpers/yellin/application_helper.rb,
app/mailers/yellin/application_mailer.rb,
app/helpers/yellin/registrations_helper.rb,
app/helpers/yellin/password_resets_helper.rb,
app/controllers/yellin/sessions_controller.rb,
app/controllers/yellin/application_controller.rb,
app/helpers/yellin/account_activations_helper.rb,
app/controllers/yellin/registrations_controller.rb,
app/controllers/yellin/password_resets_controller.rb,
app/controllers/yellin/account_activations_controller.rb
Defined Under Namespace
Modules: AccountActivationsHelper, ActsAsUser, ApplicationHelper, PasswordResetsHelper, RegistrationsHelper, SessionsHelper
Classes: AccountActivationsController, ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine, PasswordResetsController, RegistrationsController, SessionsController, UserMailer
Constant Summary
collapse
- VERSION =
'0.1.2'
Class Method Summary
collapse
Class Method Details
.app_name ⇒ Object
7
8
9
|
# File 'lib/yellin.rb', line 7
def self.app_name
@@app_name || Rails.application.class.parent
end
|
.default_from_address ⇒ Object
11
12
13
|
# File 'lib/yellin.rb', line 11
def self.default_from_address
@@default_from_address || '[email protected]'
end
|
.flash ⇒ Object
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/yellin.rb', line 15
def self.flash
default_flash = {
account_inactive: "Account not activated. Check your email for the activation link.",
activation_invalid: "Invalid activation link.",
activation_pending: "Please check your email to activate your account.",
activation_success: "Account activated.",
bad_credentials: "Invalid email/password combination.",
login_required: "Please sign in.",
reset_expired: "Password reset has expired.",
reset_invalid: "Email address not found.",
reset_sent: "Email sent with password reset instructions.",
reset_success: "Your password has been reset.",
}
@@flash || default_flash
end
|
.password_minimum_length ⇒ Object
31
32
33
|
# File 'lib/yellin.rb', line 31
def self.password_minimum_length
@@password_minimum_length || 12
end
|
.reset_timeout_hours ⇒ Object
35
36
37
|
# File 'lib/yellin.rb', line 35
def self.reset_timeout_hours
@@reset_timeout_hours || 2
end
|
.user_class ⇒ Object
39
40
41
|
# File 'lib/yellin.rb', line 39
def self.user_class
@@user_class.constantize
end
|