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
91488193
Commit
91488193
authored
Apr 24, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename before_filter to before_action
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f502b293
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
15 additions
and
15 deletions
+15
-15
app/controllers/admin/appearances_controller.rb
app/controllers/admin/appearances_controller.rb
+1
-1
app/controllers/admin/git_hooks_controller.rb
app/controllers/admin/git_hooks_controller.rb
+1
-1
app/controllers/audit_events_controller.rb
app/controllers/audit_events_controller.rb
+4
-4
app/controllers/groups/hooks_controller.rb
app/controllers/groups/hooks_controller.rb
+2
-2
app/controllers/groups/ldaps_controller.rb
app/controllers/groups/ldaps_controller.rb
+2
-2
app/controllers/projects/git_hooks_controller.rb
app/controllers/projects/git_hooks_controller.rb
+1
-1
app/controllers/projects/group_links_controller.rb
app/controllers/projects/group_links_controller.rb
+1
-1
app/controllers/projects/uploads_controller.rb
app/controllers/projects/uploads_controller.rb
+1
-1
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+1
-1
app/controllers/unsubscribes_controller.rb
app/controllers/unsubscribes_controller.rb
+1
-1
No files found.
app/controllers/admin/appearances_controller.rb
View file @
91488193
class
Admin::AppearancesController
<
Admin
::
ApplicationController
before_
filter
:set_appearance
,
except: :create
before_
action
:set_appearance
,
except: :create
def
show
end
...
...
app/controllers/admin/git_hooks_controller.rb
View file @
91488193
class
Admin::GitHooksController
<
Admin
::
ApplicationController
before_
filter
:git_hook
before_
action
:git_hook
respond_to
:html
...
...
app/controllers/audit_events_controller.rb
View file @
91488193
class
AuditEventsController
<
ApplicationController
# Authorize
before_
filter
:repository
,
only: :project_log
before_
filter
:authorize_admin_project!
,
only: :project_log
before_
filter
:group
,
only: :group_log
before_
filter
:authorize_admin_group!
,
only: :group_log
before_
action
:repository
,
only: :project_log
before_
action
:authorize_admin_project!
,
only: :project_log
before_
action
:group
,
only: :group_log
before_
action
:authorize_admin_group!
,
only: :group_log
layout
:determine_layout
...
...
app/controllers/groups/hooks_controller.rb
View file @
91488193
class
Groups::HooksController
<
Groups
::
ApplicationController
# Authorize
before_
filter
:group
before_
filter
:authorize_admin_group!
before_
action
:group
before_
action
:authorize_admin_group!
respond_to
:html
...
...
app/controllers/groups/ldaps_controller.rb
View file @
91488193
class
Groups::LdapsController
<
Groups
::
ApplicationController
before_
filter
:group
before_
filter
:authorize_admin_group!
before_
action
:group
before_
action
:authorize_admin_group!
def
reset_access
LdapGroupResetService
.
new
.
execute
(
group
,
current_user
)
...
...
app/controllers/projects/git_hooks_controller.rb
View file @
91488193
class
Projects::GitHooksController
<
Projects
::
ApplicationController
# Authorize
before_
filter
:authorize_admin_project!
before_
action
:authorize_admin_project!
respond_to
:html
...
...
app/controllers/projects/group_links_controller.rb
View file @
91488193
class
Projects::GroupLinksController
<
Projects
::
ApplicationController
layout
'project_settings'
before_
filter
:authorize_admin_project!
before_
action
:authorize_admin_project!
def
index
@group_links
=
project
.
project_group_links
.
all
...
...
app/controllers/projects/uploads_controller.rb
View file @
91488193
...
...
@@ -2,7 +2,7 @@ class Projects::UploadsController < Projects::ApplicationController
layout
'project'
# We want to skip these filters for only the `show` action if `image?` is true,
# but `skip_before_
filter
` doesn't work with both `only` and `if`, so we accomplish the same like this.
# but `skip_before_
action
` doesn't work with both `only` and `if`, so we accomplish the same like this.
skipped_filters
=
[
:authenticate_user!
,
:reject_blocked!
,
:project
,
:repository
]
skip_before_action
*
skipped_filters
,
only:
[
:show
]
before_action
*
skipped_filters
,
only:
[
:show
],
unless: :image?
...
...
app/controllers/projects_controller.rb
View file @
91488193
class
ProjectsController
<
ApplicationController
prepend_before_
filter
:render_go_import
,
only:
[
:show
]
prepend_before_
action
:render_go_import
,
only:
[
:show
]
skip_before_action
:authenticate_user!
,
only:
[
:show
]
before_action
:project
,
except:
[
:new
,
:create
]
before_action
:repository
,
except:
[
:new
,
:create
]
...
...
app/controllers/unsubscribes_controller.rb
View file @
91488193
class
UnsubscribesController
<
ApplicationController
skip_before_
filter
:authenticate_user!
,
skip_before_
action
:authenticate_user!
,
:reject_blocked
,
:set_current_user_for_observers
,
:add_abilities
layout
'public_users'
...
...
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