Sha256: 7fd5b0ebbdcb21565f503b5a5129c78f3283d0a6d1643154101e1fa706bddc6b
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
module AuthAssistant module Helpers module AuthLabel def auth_labels @auth_labels ||= translate_labels end 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 def self.included(base) base.helper_method :auth_labels end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auth-assistant-0.4.0 | lib/auth_assistant/translate/authlabels.rb |