diff --git a/lib/refinery/portfolio/engine.rb b/lib/refinery/portfolio/engine.rb index 030ff84..8c4a456 100644 --- a/lib/refinery/portfolio/engine.rb +++ b/lib/refinery/portfolio/engine.rb @@ -10,8 +10,8 @@ class Engine < Rails::Engine before_inclusion do Refinery::Plugin.register do |plugin| plugin.pathname = root - plugin.name = "portfolio" - plugin.url = { :controller => 'refinery/portfolio/admin/galleries' } + plugin.name = "refinerycms_portfolio" + plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.portfolio_admin_galleries_path } plugin.menu_match = %r{refinery/portfolio(/galleries(/.*)?)?(/items(/.*)?)?$} end