@@ -1,20 +1,20 | |||||
1 | # Sample plugin controller |
|
1 | # Sample plugin controller | |
2 | class ExampleController < ApplicationController |
|
2 | class ExampleController < ApplicationController | |
3 | unloadable |
|
3 | unloadable | |
4 |
|
4 | |||
5 |
layout 'base' |
|
5 | layout 'base' | |
6 | before_filter :find_project, :authorize |
|
6 | before_filter :find_project, :authorize | |
7 | menu_item :sample_plugin |
|
7 | menu_item :sample_plugin | |
8 |
|
8 | |||
9 | def say_hello |
|
9 | def say_hello | |
10 | @value = Setting.plugin_sample_plugin['sample_setting'] |
|
10 | @value = Setting.plugin_sample_plugin['sample_setting'] | |
11 | end |
|
11 | end | |
12 |
|
12 | |||
13 | def say_goodbye |
|
13 | def say_goodbye | |
14 | end |
|
14 | end | |
15 |
|
15 | |||
16 | private |
|
16 | private | |
17 |
def find_project |
|
17 | def find_project | |
18 | @project=Project.find(params[:id]) |
|
18 | @project=Project.find(params[:id]) | |
19 | end |
|
19 | end | |
20 | end |
|
20 | end |
General Comments 0
You need to be logged in to leave comments.
Login now