lib/avo/menu/builder.rb in avo-2.12.1.pre.1 vs lib/avo/menu/builder.rb in avo-2.13.0
- old
+ new
@@ -9,9 +9,11 @@
delegate :current_user, to: ::Avo::App
delegate :params, to: ::Avo::App
delegate :request, to: ::Avo::App
delegate :root_path, to: ::Avo::App
delegate :view_context, to: ::Avo::App
+ delegate :main_app, to: :view_context
+ delegate :avo, to: :view_context
def initialize(name: nil, items: [])
@menu = Avo::Menu::Menu.new
@menu.name = name