@@ -28,14 +28,14 @@ class IssueCategoriesController < ApplicationController
28
28
29
29
def index
30
30
respond_to do |format |
31
- format . html { redirect_to_settings_in_projects }
32
- format . api { @categories = @project . issue_categories . to_a }
31
+ format . html { redirect_to_settings_in_projects }
32
+ format . api { @categories = @project . issue_categories . to_a }
33
33
end
34
34
end
35
35
36
36
def show
37
37
respond_to do |format |
38
- format . html { redirect_to_settings_in_projects }
38
+ format . html { redirect_to_settings_in_projects }
39
39
format . api
40
40
end
41
41
end
@@ -67,9 +67,9 @@ def create
67
67
end
68
68
else
69
69
respond_to do |format |
70
- format . html { render :action => 'new' }
71
- format . js { render :action => 'new' }
72
- format . api { render_validation_errors ( @category ) }
70
+ format . html { render :action => 'new' }
71
+ format . js { render :action => 'new' }
72
+ format . api { render_validation_errors ( @category ) }
73
73
end
74
74
end
75
75
end
@@ -85,12 +85,12 @@ def update
85
85
flash [ :notice ] = l ( :notice_successful_update )
86
86
redirect_to_settings_in_projects
87
87
end
88
- format . api { render_api_ok }
88
+ format . api { render_api_ok }
89
89
end
90
90
else
91
91
respond_to do |format |
92
- format . html { render :action => 'edit' }
93
- format . api { render_validation_errors ( @category ) }
92
+ format . html { render :action => 'edit' }
93
+ format . api { render_validation_errors ( @category ) }
94
94
end
95
95
end
96
96
end
@@ -104,8 +104,8 @@ def destroy
104
104
end
105
105
@category . destroy ( reassign_to )
106
106
respond_to do |format |
107
- format . html { redirect_to_settings_in_projects }
108
- format . api { render_api_ok }
107
+ format . html { redirect_to_settings_in_projects }
108
+ format . api { render_api_ok }
109
109
end
110
110
return
111
111
end
0 commit comments