Skip to content

Commit

Permalink
Merge pull request #108 from refinery/fix-107
Browse files Browse the repository at this point in the history
Fix Url generation error
  • Loading branch information
bricesanchez committed Sep 28, 2015
2 parents 289b85b + 0e6963d commit 858196e
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 858196e

Please sign in to comment.