Remove superfluous rubocop:disable comments

This commit is contained in:
Andreas Nedbal 2023-10-15 10:21:46 +02:00 committed by Andreas Nedbal
parent ace3df932a
commit f6e26f1751
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ require File.expand_path("config/application", __dir__)
Rails.application.load_tasks
namespace :justask do # rubocop:disable Metrics/BlockLength
namespace :justask do
desc "Gives admin status to a user."
task :admin, [:screen_name] => :environment do |_t, args|
abort "screen name required" if args[:screen_name].nil?

View File

@ -41,7 +41,7 @@ class Ajax::WebPushController < AjaxController
@response[:message] = t(".subscription_count", count: current_user.web_push_subscriptions.count)
end
def unsubscribe # rubocop:disable Metrics/AbcSize
def unsubscribe
removed = if params.key?(:endpoint)
current_user.web_push_subscriptions.where("subscription ->> 'endpoint' = ?", params[:endpoint]).destroy_all
else

View File

@ -3,7 +3,7 @@
class InboxController < ApplicationController
before_action :authenticate_user!
def show # rubocop:disable Metrics/MethodLength
def show
find_author
find_inbox_entries

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class User < ApplicationRecord # rubocop:disable Metrics/ClassLength
class User < ApplicationRecord
include User::Relationship
include User::Relationship::Follow
include User::Relationship::Block