Skip to content

Commit

Permalink
Fix plugin url #107
Browse files Browse the repository at this point in the history
  • Loading branch information
Brice Sanchez committed Sep 25, 2015
1 parent 289b85b commit 0e6963d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/refinery/portfolio/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0e6963d

Please sign in to comment.