module AuthAssistant::Helpers::AuthLabel

Public Instance Methods

auth_labels() click to toggle source
# File lib/auth_assistant/translate/authlabels.rb, line 4
def auth_labels
  @auth_labels ||= translate_labels
end
translate_labels() click to toggle source
# File lib/auth_assistant/translate/authlabels.rb, line 8
def translate_labels
  ns_actions = 'auth_assistant.actions'
  labels = {}
  %w{new edit delete show sign_in sign_out sign_up edit_registration}.each do |action|     
    labels[action.to_sym] = t "#{ns_actions}.#{action}"
  end 
  labels[:confirm] = t 'auth_assistant.confirm'
  labels           
end

Public Class Methods

included(base) click to toggle source
# File lib/auth_assistant/translate/authlabels.rb, line 18
def self.included(base)
  base.helper_method :auth_labels
end