Skip to content

Commit

Permalink
Don't need first slash in plugin menu match regexp.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed May 15, 2012
1 parent 54f2ef7 commit 160b581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/refinery/inquiries/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Engine < Rails::Engine
plugin.pathname = root
plugin.name = "refinerycms_inquiries"
plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.inquiries_admin_inquiries_path }
plugin.menu_match = %r{/refinery/inquiries(/.+?)?$}
plugin.menu_match = %r{refinery/inquiries(/.+?)?$}
plugin.activity = {
:class_name => :'refinery/inquiries/inquiry',
:title => 'name',
Expand Down

2 comments on commit 160b581

@johanb
Copy link

@johanb johanb commented on 160b581 May 15, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes #85

@parndt
Copy link
Member

@parndt parndt commented on 160b581 May 15, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boom

Please sign in to comment.