Sha256: cf1a64745382612992b5cc1b8388c6e8e05634aadd424bdb5df4e295a3baed2d

Contents?: true

Size: 485 Bytes

Versions: 22

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

module EacRailsBase0
  module UserMenuHelper
    def base0_user_menu_entries
      r = {}
      if current_user
        r[current_user.to_s] = {
          'Alterar senha' => [eac_users_support.edit_user_registration_path]
        }
        r[t('devise.log_out')] = [eac_users_support.destroy_user_session_path, link_method: :delete]
      else
        r[t('devise.log_in')] = [eac_users_support.new_user_session_path]
      end
      r
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
eac_rails_base0-0.67.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.66.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.65.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.64.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.63.1 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.63.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.62.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.61.1 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.61.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.60.4 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.60.3 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.60.2 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.60.1 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.60.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.59.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.58.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.57.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.56.0 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.55.3 app/helpers/eac_rails_base0/user_menu_helper.rb
eac_rails_base0-0.55.2 app/helpers/eac_rails_base0/user_menu_helper.rb