engine/spec/dummy/app/cells/locomotive/main_menu_cell.rb

9 lines
180 B
Ruby
Raw Normal View History

module Locomotive
class MainMenuCell < MenuCell
update_for :foo do |new_menu|
new_menu.add_before :settings, :foo, :url => new_menu.main_app.foo_url
end
end
end