Skip to content

Commit 8078701

Browse files
committed
Autocorrect Rubocop
1 parent 47c3c35 commit 8078701

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/controllers/organization_users_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ def destroy
3636
end
3737

3838
def load_user
39-
@user = User.find(params[:id]) || User.new
39+
@user = User.find(params.expect(:id)) || User.new
4040
end
4141
end

app/controllers/proxy_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ProxyController < ActiveStorage::BaseController
2121

2222
# rubocop:disable Metrics/AbcSize
2323
def show
24-
attachment = ActiveStorage::Attachment.find(params[:id])
24+
attachment = ActiveStorage::Attachment.find(params.expect(:id))
2525
authorize!(:read, attachment)
2626
add_analytics_event(attachment)
2727

app/controllers/streams_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def normalized_dump
7979
end
8080

8181
def make_pending_default
82-
@stream = @organization.streams.find(params[:stream])
82+
@stream = @organization.streams.find(params.expect(:stream))
8383
authorize!(:update, @stream)
8484

8585
@stream.make_pending

app/controllers/uploads_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def destroy
6464
def info
6565
authorize! :read, @upload
6666

67-
@attachment = @upload.files.find(params[:attachment_id])
67+
@attachment = @upload.files.find(params.expect(:attachment_id))
6868
@blob = @attachment.blob
6969
end
7070

0 commit comments

Comments
 (0)