Skip to content
Browse files

add project menu

  • Loading branch information...
1 parent dab0d84 commit 8bf6f4d6f43b5501b209f9f04863dcf0d787a58e @mszczytowski mszczytowski committed Nov 17, 2008
Showing with 4 additions and 12 deletions.
  1. +0 −2 app/helpers/charts/groups_helper.rb
  2. +4 −2 init.rb
  3. +0 −8 test/functional/charts/groups_controller_test.rb
View
2 app/helpers/charts/groups_helper.rb
@@ -1,2 +0,0 @@
-module Charts::GroupsHelper
-end
View
6 init.rb
@@ -5,6 +5,8 @@
author 'Maciej Szczytowski'
description 'Charts plugin contains some useful project statistics.'
version '0.0.1'
-
- menu :project_menu, :charts, { :controller => 'charts/groups', :action => 'index' }, :caption => ':charts_menu_label', :after => :activity, :param => :project_id
+
+ permission :charts, {"charts/groups".to_sym => [:index], "charts/hours".to_sym => [:index], "charts/velocity".to_sym => [:index]}, :public => true
+
+ menu :project_menu, :charts, { :controller => 'charts/groups', :action => 'index' }, :caption => :charts_menu_label, :after => :new_issue, :param => :project_id
end
View
8 test/functional/charts/groups_controller_test.rb
@@ -1,8 +0,0 @@
-require File.dirname(__FILE__) + '/../test_helper'
-
-class Charts::GroupsControllerTest < ActionController::TestCase
- # Replace this with your real tests.
- def test_truth
- assert true
- end
-end

0 comments on commit 8bf6f4d

Please sign in to comment.
Something went wrong with that request. Please try again.