Sha256: 7c8557e84b2b6ed7317a96edbe27543eacd368c5a572a86c0505201db492129b

Contents?: true

Size: 468 Bytes

Versions: 8

Compression:

Stored size: 468 Bytes

Contents

module Cream::Helper
  module AuthLabel          
    def auth_labels
      @auth_labels ||= translate_labels
    end

    protected

    def translate_labels
      ns_actions = 'cream.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 'cream.confirm'
      labels           
    end    
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cream-0.7.3 lib/cream/helper/authlabels.rb
cream-0.7.2 lib/cream/helper/authlabels.rb
cream-0.7.0 lib/cream/helper/authlabels.rb
cream-0.6.4 lib/cream/helper/authlabels.rb
cream-0.6.3 lib/cream/helper/authlabels.rb
cream-0.6.1 lib/cream/helper/authlabels.rb
cream-0.6.0 lib/cream/helper/authlabels.rb
cream-0.5.10 lib/cream/helper/authlabels.rb