Permalink
Browse files

Fix news tab highlighting when selected. Closes #82.

  • Loading branch information...
1 parent 32ccc41 commit e323d581132cd65dcc3dc5cd5e4450ef465eac0e @ugisozols ugisozols committed Mar 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/refinery/news/engine.rb
@@ -9,9 +9,9 @@ class Engine < Rails::Engine
Refinery::Plugin.register do |plugin|
plugin.pathname = root
plugin.name = "refinerycms_news"
- plugin.menu_match = /refinery\/news(_items)?$/
- plugin.url = {:controller => '/refinery/news/admin/items'}
+ plugin.menu_match = /refinery\/news(\/items)?$/
plugin.activity = { :class_name => 'Refinery::News::Item' }
+ plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.news_admin_items_path }
end
end

0 comments on commit e323d58

Please sign in to comment.