Fix `Style/SuperArguments` cop (#30406)
parent
9305caf1fd
commit
9b5055d34d
|
@ -44,7 +44,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_resource(hash = nil)
|
def build_resource(hash = nil)
|
||||||
super(hash)
|
super
|
||||||
|
|
||||||
resource.locale = I18n.locale
|
resource.locale = I18n.locale
|
||||||
resource.invite_code = @invite&.code if resource.invite_code.blank?
|
resource.invite_code = @invite&.code if resource.invite_code.blank?
|
||||||
|
|
|
@ -33,6 +33,6 @@ class ActivityPub::Serializer < ActiveModel::Serializer
|
||||||
adapter_options[:named_contexts].merge!(_named_contexts)
|
adapter_options[:named_contexts].merge!(_named_contexts)
|
||||||
adapter_options[:context_extensions].merge!(_context_extensions)
|
adapter_options[:context_extensions].merge!(_context_extensions)
|
||||||
end
|
end
|
||||||
super(adapter_options, options, adapter_instance)
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,7 +5,7 @@ require_relative 'shared_timed_stack'
|
||||||
|
|
||||||
class ConnectionPool::SharedConnectionPool < ConnectionPool
|
class ConnectionPool::SharedConnectionPool < ConnectionPool
|
||||||
def initialize(options = {}, &block)
|
def initialize(options = {}, &block)
|
||||||
super(options, &block)
|
super
|
||||||
|
|
||||||
@available = ConnectionPool::SharedTimedStack.new(@size, &block)
|
@available = ConnectionPool::SharedTimedStack.new(@size, &block)
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class RSS::Channel < RSS::Element
|
class RSS::Channel < RSS::Element
|
||||||
def initialize
|
def initialize
|
||||||
super()
|
super
|
||||||
|
|
||||||
@root = create_element('channel')
|
@root = create_element('channel')
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class RSS::Item < RSS::Element
|
class RSS::Item < RSS::Element
|
||||||
def initialize
|
def initialize
|
||||||
super()
|
super
|
||||||
|
|
||||||
@root = create_element('item')
|
@root = create_element('item')
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,7 +23,7 @@ module Attachmentable
|
||||||
|
|
||||||
included do
|
included do
|
||||||
def self.has_attached_file(name, options = {}) # rubocop:disable Naming/PredicateName
|
def self.has_attached_file(name, options = {}) # rubocop:disable Naming/PredicateName
|
||||||
super(name, options)
|
super
|
||||||
|
|
||||||
send(:"before_#{name}_validate", prepend: true) do
|
send(:"before_#{name}_validate", prepend: true) do
|
||||||
attachment = send(name)
|
attachment = send(name)
|
||||||
|
|
Loading…
Reference in New Issue