Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
action_text-trix (2.1.18)
action_text-trix (2.1.19)
railties
actioncable (8.1.3)
actionpack (= 8.1.3)
Expand Down Expand Up @@ -95,7 +95,7 @@ GEM
bcrypt (3.1.22)
bigdecimal (4.1.2)
bindex (0.8.1)
bootsnap (1.24.1)
bootsnap (1.24.3)
msgpack (~> 1.2)
brakeman (8.0.4)
racc
Expand Down Expand Up @@ -149,7 +149,7 @@ GEM
erubi (1.13.1)
et-orbi (1.4.0)
tzinfo
factory_bot (6.5.6)
factory_bot (6.6.0)
activesupport (>= 6.1.0)
factory_bot_rails (6.5.1)
factory_bot (~> 6.5)
Expand Down Expand Up @@ -216,7 +216,7 @@ GEM
prism (~> 1.5)
mize (0.6.1)
msgpack (1.8.0)
multi_xml (0.9.0)
multi_xml (0.9.1)
bigdecimal (>= 3.1, < 5)
net-imap (0.6.4)
date
Expand Down Expand Up @@ -361,7 +361,7 @@ GEM
rubocop-i18n (3.3.0)
lint_roller (~> 1.1)
rubocop (>= 1.72.1)
rubocop-rails (2.34.3)
rubocop-rails (2.35.0)
activesupport (>= 4.2.0)
lint_roller (~> 1.1)
rack (>= 1.1)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/feeds_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def update
end

def destroy
authorization.check(Feed.find(params[:id]))
authorization.check(Feed.find(params.expect(:id)))
FeedRepository.delete(params[:id])

flash[:success] = t(".success")
Expand Down
5 changes: 4 additions & 1 deletion app/controllers/imports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ def new

def create
authorization.skip
Feed::ImportFromOpml.call(params["opml_file"].read, user: current_user)
Feed::ImportFromOpml.call(
params.expect("opml_file").read,
user: current_user
)

redirect_to("/setup/tutorial")
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/settings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def index
def update
authorization.skip

setting = Setting.find(params[:id])
setting = Setting.find(params.expect(:id))
setting.update!(setting_params)

redirect_to(settings_path)
Expand Down
Loading