Autofix Rubocop Rails/FindById (#23762)
This commit is contained in:
1 parent
35d032500b
commit
434770f580
3 files changed
+2
-9
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user