Class: Decidim::FeedsUi::Menu

Inherits:
Object
  • Object
show all
Defined in:
lib/decidim/feeds_ui/menu.rb

Class Method Summary collapse

Class Method Details

.register_user_menu!Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/decidim/feeds_ui/menu.rb', line 6

def self.register_user_menu!
  Decidim.menu :user_menu do |menu|
    menu.add_item :sign_out,
                  t("sign_out", scope: "decidim.components.feeds_ui.userMenu"),
                  decidim.destroy_user_session_path,
                  position: 1000,
                  active: :exact,
                  method: :delete
  end
end