Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
30ee5362
Commit
30ee5362
authored
Sep 25, 2012
by
Nihad Abbasov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1553 from jouve/simplify_controllers1
remove duplicate before_filter
parents
e584f148
252d3a0c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
6 deletions
+0
-6
app/controllers/hooks_controller.rb
app/controllers/hooks_controller.rb
+0
-1
app/controllers/issues_controller.rb
app/controllers/issues_controller.rb
+0
-1
app/controllers/labels_controller.rb
app/controllers/labels_controller.rb
+0
-1
app/controllers/merge_requests_controller.rb
app/controllers/merge_requests_controller.rb
+0
-1
app/controllers/milestones_controller.rb
app/controllers/milestones_controller.rb
+0
-1
app/controllers/snippets_controller.rb
app/controllers/snippets_controller.rb
+0
-1
No files found.
app/controllers/hooks_controller.rb
View file @
30ee5362
class
HooksController
<
ApplicationController
before_filter
:authenticate_user!
before_filter
:project
layout
"project"
...
...
app/controllers/issues_controller.rb
View file @
30ee5362
class
IssuesController
<
ApplicationController
before_filter
:authenticate_user!
before_filter
:project
before_filter
:module_enabled
before_filter
:issue
,
only:
[
:edit
,
:update
,
:destroy
,
:show
]
...
...
app/controllers/labels_controller.rb
View file @
30ee5362
class
LabelsController
<
ApplicationController
before_filter
:authenticate_user!
before_filter
:project
before_filter
:module_enabled
...
...
app/controllers/merge_requests_controller.rb
View file @
30ee5362
class
MergeRequestsController
<
ApplicationController
before_filter
:authenticate_user!
before_filter
:project
before_filter
:module_enabled
before_filter
:merge_request
,
only:
[
:edit
,
:update
,
:destroy
,
:show
,
:commits
,
:diffs
,
:automerge
,
:automerge_check
,
:raw
]
...
...
app/controllers/milestones_controller.rb
View file @
30ee5362
class
MilestonesController
<
ApplicationController
before_filter
:authenticate_user!
before_filter
:project
before_filter
:module_enabled
before_filter
:milestone
,
only:
[
:edit
,
:update
,
:destroy
,
:show
]
...
...
app/controllers/snippets_controller.rb
View file @
30ee5362
class
SnippetsController
<
ApplicationController
before_filter
:authenticate_user!
before_filter
:project
before_filter
:snippet
,
only:
[
:show
,
:edit
,
:destroy
,
:update
,
:raw
]
layout
"project"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment