mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:09:53 +01:00
Remove superfluous rubocop:disable comments
This commit is contained in:
parent
ace3df932a
commit
f6e26f1751
4 changed files with 4 additions and 4 deletions
2
Rakefile
2
Rakefile
|
@ -7,7 +7,7 @@ require File.expand_path("config/application", __dir__)
|
||||||
|
|
||||||
Rails.application.load_tasks
|
Rails.application.load_tasks
|
||||||
|
|
||||||
namespace :justask do # rubocop:disable Metrics/BlockLength
|
namespace :justask do
|
||||||
desc "Gives admin status to a user."
|
desc "Gives admin status to a user."
|
||||||
task :admin, [:screen_name] => :environment do |_t, args|
|
task :admin, [:screen_name] => :environment do |_t, args|
|
||||||
abort "screen name required" if args[:screen_name].nil?
|
abort "screen name required" if args[:screen_name].nil?
|
||||||
|
|
|
@ -41,7 +41,7 @@ class Ajax::WebPushController < AjaxController
|
||||||
@response[:message] = t(".subscription_count", count: current_user.web_push_subscriptions.count)
|
@response[:message] = t(".subscription_count", count: current_user.web_push_subscriptions.count)
|
||||||
end
|
end
|
||||||
|
|
||||||
def unsubscribe # rubocop:disable Metrics/AbcSize
|
def unsubscribe
|
||||||
removed = if params.key?(:endpoint)
|
removed = if params.key?(:endpoint)
|
||||||
current_user.web_push_subscriptions.where("subscription ->> 'endpoint' = ?", params[:endpoint]).destroy_all
|
current_user.web_push_subscriptions.where("subscription ->> 'endpoint' = ?", params[:endpoint]).destroy_all
|
||||||
else
|
else
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
class InboxController < ApplicationController
|
class InboxController < ApplicationController
|
||||||
before_action :authenticate_user!
|
before_action :authenticate_user!
|
||||||
|
|
||||||
def show # rubocop:disable Metrics/MethodLength
|
def show
|
||||||
find_author
|
find_author
|
||||||
find_inbox_entries
|
find_inbox_entries
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class User < ApplicationRecord # rubocop:disable Metrics/ClassLength
|
class User < ApplicationRecord
|
||||||
include User::Relationship
|
include User::Relationship
|
||||||
include User::Relationship::Follow
|
include User::Relationship::Follow
|
||||||
include User::Relationship::Block
|
include User::Relationship::Block
|
||||||
|
|
Loading…
Reference in a new issue