From 0e6963d5672055435e5a3c3795f4fa1f085950da Mon Sep 17 00:00:00 2001 From: Brice Sanchez Date: Fri, 25 Sep 2015 09:26:48 -0400 Subject: [PATCH] Fix plugin url #107 --- lib/refinery/portfolio/engine.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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