Autofix Rubocop Rails/FindById (#23762)
This commit is contained in:
parent
35d032500b
commit
434770f580
3 changed files with 2 additions and 9 deletions
|
@ -24,7 +24,7 @@ class Api::V1::NotificationsController < Api::BaseController
|
|||
end
|
||||
|
||||
def dismiss
|
||||
current_account.notifications.find_by!(id: params[:id]).destroy!
|
||||
current_account.notifications.find(params[:id]).destroy!
|
||||
render_empty
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue