BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
253a017b
Unverified
Commit
253a017b
authored
May 18, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'meinac/gitlab-ce-change_deprecated_render_usage'
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parents
4ade5ff4
6a0ea605
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
18 additions
and
18 deletions
+18
-18
abuse_reports_controller.rb
app/controllers/admin/abuse_reports_controller.rb
+1
-1
broadcast_messages_controller.rb
app/controllers/admin/broadcast_messages_controller.rb
+1
-1
keys_controller.rb
app/controllers/admin/keys_controller.rb
+1
-1
spam_logs_controller.rb
app/controllers/admin/spam_logs_controller.rb
+1
-1
users_controller.rb
app/controllers/admin/users_controller.rb
+1
-1
toggle_subscription_action.rb
app/controllers/concerns/toggle_subscription_action.rb
+1
-1
todos_controller.rb
app/controllers/dashboard/todos_controller.rb
+2
-2
group_members_controller.rb
app/controllers/groups/group_members_controller.rb
+1
-1
emails_controller.rb
app/controllers/profiles/emails_controller.rb
+1
-1
keys_controller.rb
app/controllers/profiles/keys_controller.rb
+1
-1
milestones_controller.rb
app/controllers/projects/milestones_controller.rb
+1
-1
notes_controller.rb
app/controllers/projects/notes_controller.rb
+2
-2
project_members_controller.rb
app/controllers/projects/project_members_controller.rb
+2
-2
protected_branches_controller.rb
app/controllers/projects/protected_branches_controller.rb
+1
-1
raw_controller_spec.rb
spec/controllers/projects/raw_controller_spec.rb
+1
-1
No files found.
app/controllers/admin/abuse_reports_controller.rb
View file @
253a017b
...
@@ -9,6 +9,6 @@ class Admin::AbuseReportsController < Admin::ApplicationController
...
@@ -9,6 +9,6 @@ class Admin::AbuseReportsController < Admin::ApplicationController
abuse_report
.
remove_user
(
deleted_by:
current_user
)
if
params
[
:remove_user
]
abuse_report
.
remove_user
(
deleted_by:
current_user
)
if
params
[
:remove_user
]
abuse_report
.
destroy
abuse_report
.
destroy
render
nothing:
true
head
:ok
end
end
end
end
app/controllers/admin/broadcast_messages_controller.rb
View file @
253a017b
...
@@ -32,7 +32,7 @@ class Admin::BroadcastMessagesController < Admin::ApplicationController
...
@@ -32,7 +32,7 @@ class Admin::BroadcastMessagesController < Admin::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_back_or_default
(
default:
{
action:
'index'
})
}
format
.
html
{
redirect_back_or_default
(
default:
{
action:
'index'
})
}
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
...
app/controllers/admin/keys_controller.rb
View file @
253a017b
...
@@ -6,7 +6,7 @@ class Admin::KeysController < Admin::ApplicationController
...
@@ -6,7 +6,7 @@ class Admin::KeysController < Admin::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
format
.
html
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
...
app/controllers/admin/spam_logs_controller.rb
View file @
253a017b
...
@@ -11,7 +11,7 @@ class Admin::SpamLogsController < Admin::ApplicationController
...
@@ -11,7 +11,7 @@ class Admin::SpamLogsController < Admin::ApplicationController
redirect_to
admin_spam_logs_path
,
notice:
"User
#{
spam_log
.
user
.
username
}
was successfully removed."
redirect_to
admin_spam_logs_path
,
notice:
"User
#{
spam_log
.
user
.
username
}
was successfully removed."
else
else
spam_log
.
destroy
spam_log
.
destroy
render
nothing:
true
head
:ok
end
end
end
end
end
end
app/controllers/admin/users_controller.rb
View file @
253a017b
...
@@ -154,7 +154,7 @@ class Admin::UsersController < Admin::ApplicationController
...
@@ -154,7 +154,7 @@ class Admin::UsersController < Admin::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_back_or_admin_user
(
notice:
"Successfully removed email."
)
}
format
.
html
{
redirect_back_or_admin_user
(
notice:
"Successfully removed email."
)
}
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
...
app/controllers/concerns/toggle_subscription_action.rb
View file @
253a017b
...
@@ -6,7 +6,7 @@ module ToggleSubscriptionAction
...
@@ -6,7 +6,7 @@ module ToggleSubscriptionAction
subscribable_resource
.
toggle_subscription
(
current_user
)
subscribable_resource
.
toggle_subscription
(
current_user
)
render
nothing:
true
head
:ok
end
end
private
private
...
...
app/controllers/dashboard/todos_controller.rb
View file @
253a017b
...
@@ -12,7 +12,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController
...
@@ -12,7 +12,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
dashboard_todos_path
,
notice:
todo_notice
}
format
.
html
{
redirect_to
dashboard_todos_path
,
notice:
todo_notice
}
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
format
.
json
do
format
.
json
do
render
json:
{
count:
@todos
.
size
,
done_count:
current_user
.
todos
.
done
.
count
}
render
json:
{
count:
@todos
.
size
,
done_count:
current_user
.
todos
.
done
.
count
}
end
end
...
@@ -24,7 +24,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController
...
@@ -24,7 +24,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
dashboard_todos_path
,
notice:
'All todos were marked as done.'
}
format
.
html
{
redirect_to
dashboard_todos_path
,
notice:
'All todos were marked as done.'
}
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
format
.
json
do
format
.
json
do
find_todos
find_todos
render
json:
{
count:
@todos
.
size
,
done_count:
current_user
.
todos
.
done
.
count
}
render
json:
{
count:
@todos
.
size
,
done_count:
current_user
.
todos
.
done
.
count
}
...
...
app/controllers/groups/group_members_controller.rb
View file @
253a017b
...
@@ -40,7 +40,7 @@ class Groups::GroupMembersController < Groups::ApplicationController
...
@@ -40,7 +40,7 @@ class Groups::GroupMembersController < Groups::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
group_group_members_path
(
@group
),
notice:
'User was successfully removed from group.'
}
format
.
html
{
redirect_to
group_group_members_path
(
@group
),
notice:
'User was successfully removed from group.'
}
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
...
app/controllers/profiles/emails_controller.rb
View file @
253a017b
...
@@ -24,7 +24,7 @@ class Profiles::EmailsController < Profiles::ApplicationController
...
@@ -24,7 +24,7 @@ class Profiles::EmailsController < Profiles::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
profile_emails_url
}
format
.
html
{
redirect_to
profile_emails_url
}
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
...
app/controllers/profiles/keys_controller.rb
View file @
253a017b
...
@@ -32,7 +32,7 @@ class Profiles::KeysController < Profiles::ApplicationController
...
@@ -32,7 +32,7 @@ class Profiles::KeysController < Profiles::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
profile_keys_url
}
format
.
html
{
redirect_to
profile_keys_url
}
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
...
app/controllers/projects/milestones_controller.rb
View file @
253a017b
...
@@ -75,7 +75,7 @@ class Projects::MilestonesController < Projects::ApplicationController
...
@@ -75,7 +75,7 @@ class Projects::MilestonesController < Projects::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
namespace_project_milestones_path
}
format
.
html
{
redirect_to
namespace_project_milestones_path
}
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
...
app/controllers/projects/notes_controller.rb
View file @
253a017b
...
@@ -43,7 +43,7 @@ class Projects::NotesController < Projects::ApplicationController
...
@@ -43,7 +43,7 @@ class Projects::NotesController < Projects::ApplicationController
end
end
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
@@ -52,7 +52,7 @@ class Projects::NotesController < Projects::ApplicationController
...
@@ -52,7 +52,7 @@ class Projects::NotesController < Projects::ApplicationController
note
.
update_attribute
(
:attachment
,
nil
)
note
.
update_attribute
(
:attachment
,
nil
)
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
...
app/controllers/projects/project_members_controller.rb
View file @
253a017b
...
@@ -55,7 +55,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
...
@@ -55,7 +55,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
format
.
html
do
format
.
html
do
redirect_to
namespace_project_project_members_path
(
@project
.
namespace
,
@project
)
redirect_to
namespace_project_project_members_path
(
@project
.
namespace
,
@project
)
end
end
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
@@ -81,7 +81,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
...
@@ -81,7 +81,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
dashboard_projects_path
,
notice:
"You left the project."
}
format
.
html
{
redirect_to
dashboard_projects_path
,
notice:
"You left the project."
}
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
else
else
if
current_user
==
@project
.
owner
if
current_user
==
@project
.
owner
...
...
app/controllers/projects/protected_branches_controller.rb
View file @
253a017b
...
@@ -39,7 +39,7 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController
...
@@ -39,7 +39,7 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
namespace_project_protected_branches_path
}
format
.
html
{
redirect_to
namespace_project_protected_branches_path
}
format
.
js
{
render
nothing:
true
}
format
.
js
{
head
:ok
}
end
end
end
end
...
...
spec/controllers/projects/raw_controller_spec.rb
View file @
253a017b
...
@@ -42,7 +42,7 @@ describe Projects::RawController do
...
@@ -42,7 +42,7 @@ describe Projects::RawController do
before
do
before
do
public_project
.
lfs_objects
<<
lfs_object
public_project
.
lfs_objects
<<
lfs_object
allow_any_instance_of
(
LfsObjectUploader
).
to
receive
(
:exists?
).
and_return
(
true
)
allow_any_instance_of
(
LfsObjectUploader
).
to
receive
(
:exists?
).
and_return
(
true
)
allow
(
controller
).
to
receive
(
:send_file
)
{
controller
.
render
nothing:
true
}
allow
(
controller
).
to
receive
(
:send_file
)
{
controller
.
head
:ok
}
end
end
it
'serves the file'
do
it
'serves the file'
do
...
...
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