Module: Devise::Links

Defined in:
lib/devise-links/registration.rb,
lib/devise-links/session.rb,
lib/devise-links/labels.rb

Defined Under Namespace

Modules: Labels, Registration, Session

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.translateObject

Returns the value of attribute translate.



7
8
9
# File 'lib/devise-links/labels.rb', line 7

def translate
  @translate
end

Class Method Details

.auth_labelsObject



13
14
15
# File 'lib/devise-links/labels.rb', line 13

def auth_labels
  %w{sign_in sign_out sign_up edit_registration}
end

.labelsObject



3
4
5
# File 'lib/devise-links/labels.rb', line 3

def labels
  @lbs ||= translate_labels? ? translate_labels : default_labels
end

.translate_labels?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/devise-links/labels.rb', line 9

def translate_labels?
  translate
end