diff --git a/actioncable/lib/action_cable/channel/broadcasting.rb b/actioncable/lib/action_cable/channel/broadcasting.rb
index 9f702e425e..c0e16b4666 100644
--- a/actioncable/lib/action_cable/channel/broadcasting.rb
+++ b/actioncable/lib/action_cable/channel/broadcasting.rb
@@ -25,7 +25,7 @@ module ActionCable
serialize_broadcasting([ channel_name, model ])
end
- def serialize_broadcasting(object) #:nodoc:
+ def serialize_broadcasting(object) # :nodoc:
case
when object.is_a?(Array)
object.map { |m| serialize_broadcasting(m) }.join(":")
diff --git a/actioncable/lib/action_cable/connection/base.rb b/actioncable/lib/action_cable/connection/base.rb
index a243a91def..dfdfa716a3 100644
--- a/actioncable/lib/action_cable/connection/base.rb
+++ b/actioncable/lib/action_cable/connection/base.rb
@@ -68,7 +68,7 @@ module ActionCable
# Called by the server when a new WebSocket connection is established. This configures the callbacks intended for overwriting by the user.
# This method should not be called directly -- instead rely upon on the #connect (and #disconnect) callbacks.
- def process #:nodoc:
+ def process # :nodoc:
logger.info started_request_message
if websocket.possible? && allow_request_origin?
@@ -80,11 +80,11 @@ module ActionCable
# Decodes WebSocket messages and dispatches them to subscribed channels.
# WebSocket message transfer encoding is always JSON.
- def receive(websocket_message) #:nodoc:
+ def receive(websocket_message) # :nodoc:
send_async :dispatch_websocket_message, websocket_message
end
- def dispatch_websocket_message(websocket_message) #:nodoc:
+ def dispatch_websocket_message(websocket_message) # :nodoc:
if websocket.alive?
subscriptions.execute_command decode(websocket_message)
else
diff --git a/actionmailbox/app/models/action_mailbox/record.rb b/actionmailbox/app/models/action_mailbox/record.rb
index 533f43b046..77b3a99e89 100644
--- a/actionmailbox/app/models/action_mailbox/record.rb
+++ b/actionmailbox/app/models/action_mailbox/record.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module ActionMailbox
- class Record < ActiveRecord::Base #:nodoc:
+ class Record < ActiveRecord::Base # :nodoc:
self.abstract_class = true
end
end
diff --git a/actionmailbox/lib/action_mailbox/base.rb b/actionmailbox/lib/action_mailbox/base.rb
index ff8587acd1..ce3e2a104c 100644
--- a/actionmailbox/lib/action_mailbox/base.rb
+++ b/actionmailbox/lib/action_mailbox/base.rb
@@ -77,7 +77,7 @@ module ActionMailbox
@inbound_email = inbound_email
end
- def perform_processing #:nodoc:
+ def perform_processing # :nodoc:
track_status_of_inbound_email do
run_callbacks :process do
process
@@ -92,7 +92,7 @@ module ActionMailbox
# Overwrite in subclasses
end
- def finished_processing? #:nodoc:
+ def finished_processing? # :nodoc:
inbound_email.delivered? || inbound_email.bounced?
end
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 40d38bfd18..846f9b0cb5 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -555,7 +555,7 @@ module ActionMailer
# through a callback when you call :deliver on the Mail::Message,
# calling +deliver_mail+ directly and passing a Mail::Message will do
# nothing except tell the logger you sent the email.
- def deliver_mail(mail) #:nodoc:
+ def deliver_mail(mail) # :nodoc:
ActiveSupport::Notifications.instrument("deliver.action_mailer") do |payload|
set_payload_for_mail(payload, mail)
yield # Let Mail do the delivery actions
@@ -606,7 +606,7 @@ module ActionMailer
@_message = Mail.new
end
- def process(method_name, *args) #:nodoc:
+ def process(method_name, *args) # :nodoc:
payload = {
mailer: self.class.name,
action: method_name,
@@ -619,7 +619,7 @@ module ActionMailer
end
end
- class NullMail #:nodoc:
+ class NullMail # :nodoc:
def body; "" end
def header; {} end
diff --git a/actionmailer/lib/action_mailer/delivery_job.rb b/actionmailer/lib/action_mailer/delivery_job.rb
index 28ce0842de..8edf34b519 100644
--- a/actionmailer/lib/action_mailer/delivery_job.rb
+++ b/actionmailer/lib/action_mailer/delivery_job.rb
@@ -20,7 +20,7 @@ module ActionMailer
MSG
end
- def perform(mailer, mail_method, delivery_method, *args) #:nodoc:
+ def perform(mailer, mail_method, delivery_method, *args) # :nodoc:
mailer.constantize.public_send(mail_method, *args).send(delivery_method)
end
ruby2_keywords(:perform)
diff --git a/actionmailer/lib/action_mailer/inline_preview_interceptor.rb b/actionmailer/lib/action_mailer/inline_preview_interceptor.rb
index 2b97ac5b94..0c43fe0572 100644
--- a/actionmailer/lib/action_mailer/inline_preview_interceptor.rb
+++ b/actionmailer/lib/action_mailer/inline_preview_interceptor.rb
@@ -17,15 +17,15 @@ module ActionMailer
include Base64
- def self.previewing_email(message) #:nodoc:
+ def self.previewing_email(message) # :nodoc:
new(message).transform!
end
- def initialize(message) #:nodoc:
+ def initialize(message) # :nodoc:
@message = message
end
- def transform! #:nodoc:
+ def transform! # :nodoc:
return message if html_part.blank?
html_part.body = html_part.decoded.gsub(PATTERN) do |match|
diff --git a/actionmailer/lib/action_mailer/message_delivery.rb b/actionmailer/lib/action_mailer/message_delivery.rb
index 553872e234..5dd82dbea4 100644
--- a/actionmailer/lib/action_mailer/message_delivery.rb
+++ b/actionmailer/lib/action_mailer/message_delivery.rb
@@ -15,7 +15,7 @@ module ActionMailer
# Notifier.welcome(User.first).deliver_later # enqueue email delivery as a job through Active Job
# Notifier.welcome(User.first).message # a Mail::Message object
class MessageDelivery < Delegator
- def initialize(mailer_class, action, *args) #:nodoc:
+ def initialize(mailer_class, action, *args) # :nodoc:
@mailer_class, @action, @args = mailer_class, action, args
# The mail is only processed if we try to call any methods on it.
@@ -26,12 +26,12 @@ module ActionMailer
ruby2_keywords(:initialize)
# Method calls are delegated to the Mail::Message that's ready to deliver.
- def __getobj__ #:nodoc:
+ def __getobj__ # :nodoc:
@mail_message ||= processed_mailer.message
end
# Unused except for delegator internals (dup, marshalling).
- def __setobj__(mail_message) #:nodoc:
+ def __setobj__(mail_message) # :nodoc:
@mail_message = mail_message
end
diff --git a/actionmailer/lib/action_mailer/preview.rb b/actionmailer/lib/action_mailer/preview.rb
index cb3f42424c..67d22c0271 100644
--- a/actionmailer/lib/action_mailer/preview.rb
+++ b/actionmailer/lib/action_mailer/preview.rb
@@ -3,7 +3,7 @@
require "active_support/descendants_tracker"
module ActionMailer
- module Previews #:nodoc:
+ module Previews # :nodoc:
extend ActiveSupport::Concern
included do
diff --git a/actionmailer/lib/action_mailer/rescuable.rb b/actionmailer/lib/action_mailer/rescuable.rb
index 5b567eb500..5a9927ebb9 100644
--- a/actionmailer/lib/action_mailer/rescuable.rb
+++ b/actionmailer/lib/action_mailer/rescuable.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-module ActionMailer #:nodoc:
+module ActionMailer # :nodoc:
# Provides +rescue_from+ for mailers. Wraps mailer action processing,
# mail job processing, and mail delivery.
module Rescuable
@@ -8,12 +8,12 @@ module ActionMailer #:nodoc:
include ActiveSupport::Rescuable
class_methods do
- def handle_exception(exception) #:nodoc:
+ def handle_exception(exception) # :nodoc:
rescue_with_handler(exception) || raise(exception)
end
end
- def handle_exceptions #:nodoc:
+ def handle_exceptions # :nodoc:
yield
rescue => exception
rescue_with_handler(exception) || raise
diff --git a/actionpack/lib/abstract_controller/asset_paths.rb b/actionpack/lib/abstract_controller/asset_paths.rb
index d6ee84b87b..f08912b556 100644
--- a/actionpack/lib/abstract_controller/asset_paths.rb
+++ b/actionpack/lib/abstract_controller/asset_paths.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module AbstractController
- module AssetPaths #:nodoc:
+ module AssetPaths # :nodoc:
extend ActiveSupport::Concern
included do
diff --git a/actionpack/lib/abstract_controller/error.rb b/actionpack/lib/abstract_controller/error.rb
index 89a54f072e..88d863c719 100644
--- a/actionpack/lib/abstract_controller/error.rb
+++ b/actionpack/lib/abstract_controller/error.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
module AbstractController
- class Error < StandardError #:nodoc:
+ class Error < StandardError # :nodoc:
end
end
diff --git a/actionpack/lib/abstract_controller/logger.rb b/actionpack/lib/abstract_controller/logger.rb
index 8d0acc1b5c..c7ab9c7737 100644
--- a/actionpack/lib/abstract_controller/logger.rb
+++ b/actionpack/lib/abstract_controller/logger.rb
@@ -3,7 +3,7 @@
require "active_support/benchmarkable"
module AbstractController
- module Logger #:nodoc:
+ module Logger # :nodoc:
extend ActiveSupport::Concern
included do
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb
index bed46b00de..f58005cdc9 100644
--- a/actionpack/lib/action_controller/metal.rb
+++ b/actionpack/lib/action_controller/metal.rb
@@ -11,8 +11,8 @@ module ActionController
# use AuthenticationMiddleware, except: [:index, :show]
# end
#
- class MiddlewareStack < ActionDispatch::MiddlewareStack #:nodoc:
- class Middleware < ActionDispatch::MiddlewareStack::Middleware #:nodoc:
+ class MiddlewareStack < ActionDispatch::MiddlewareStack # :nodoc:
+ class Middleware < ActionDispatch::MiddlewareStack::Middleware # :nodoc:
def initialize(klass, args, actions, strategy, block)
@actions = actions
@strategy = strategy
@@ -182,7 +182,7 @@ module ActionController
response_body || response.committed?
end
- def dispatch(name, request, response) #:nodoc:
+ def dispatch(name, request, response) # :nodoc:
set_request!(request)
set_response!(response)
process(name)
@@ -194,12 +194,12 @@ module ActionController
@_response = response
end
- def set_request!(request) #:nodoc:
+ def set_request!(request) # :nodoc:
@_request = request
@_request.controller_instance = self
end
- def to_a #:nodoc:
+ def to_a # :nodoc:
response.to_a
end
diff --git a/actionpack/lib/action_controller/metal/content_security_policy.rb b/actionpack/lib/action_controller/metal/content_security_policy.rb
index 25fc110bfe..fe1afc512b 100644
--- a/actionpack/lib/action_controller/metal/content_security_policy.rb
+++ b/actionpack/lib/action_controller/metal/content_security_policy.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-module ActionController #:nodoc:
+module ActionController # :nodoc:
module ContentSecurityPolicy
# TODO: Documentation
extend ActiveSupport::Concern
diff --git a/actionpack/lib/action_controller/metal/cookies.rb b/actionpack/lib/action_controller/metal/cookies.rb
index b9f947e525..17b51d215f 100644
--- a/actionpack/lib/action_controller/metal/cookies.rb
+++ b/actionpack/lib/action_controller/metal/cookies.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-module ActionController #:nodoc:
+module ActionController # :nodoc:
module Cookies
extend ActiveSupport::Concern
diff --git a/actionpack/lib/action_controller/metal/data_streaming.rb b/actionpack/lib/action_controller/metal/data_streaming.rb
index 6af1febaf7..2730c5ecae 100644
--- a/actionpack/lib/action_controller/metal/data_streaming.rb
+++ b/actionpack/lib/action_controller/metal/data_streaming.rb
@@ -3,7 +3,7 @@
require "action_controller/metal/exceptions"
require "action_dispatch/http/content_disposition"
-module ActionController #:nodoc:
+module ActionController # :nodoc:
# Methods for sending arbitrary data and for streaming files to the browser,
# instead of rendering.
module DataStreaming
@@ -11,8 +11,8 @@ module ActionController #:nodoc:
include ActionController::Rendering
- DEFAULT_SEND_FILE_TYPE = "application/octet-stream" #:nodoc:
- DEFAULT_SEND_FILE_DISPOSITION = "attachment" #:nodoc:
+ DEFAULT_SEND_FILE_TYPE = "application/octet-stream" # :nodoc:
+ DEFAULT_SEND_FILE_DISPOSITION = "attachment" # :nodoc:
private
# Sends the file. This uses a server-appropriate method (such as X-Sendfile)
diff --git a/actionpack/lib/action_controller/metal/exceptions.rb b/actionpack/lib/action_controller/metal/exceptions.rb
index 22332a5ca9..8a8818d96a 100644
--- a/actionpack/lib/action_controller/metal/exceptions.rb
+++ b/actionpack/lib/action_controller/metal/exceptions.rb
@@ -1,20 +1,20 @@
# frozen_string_literal: true
module ActionController
- class ActionControllerError < StandardError #:nodoc:
+ class ActionControllerError < StandardError # :nodoc:
end
- class BadRequest < ActionControllerError #:nodoc:
+ class BadRequest < ActionControllerError # :nodoc:
def initialize(msg = nil)
super(msg)
set_backtrace $!.backtrace if $!
end
end
- class RenderError < ActionControllerError #:nodoc:
+ class RenderError < ActionControllerError # :nodoc:
end
- class RoutingError < ActionControllerError #:nodoc:
+ class RoutingError < ActionControllerError # :nodoc:
attr_reader :failures
def initialize(message, failures = [])
super(message)
@@ -22,7 +22,7 @@ module ActionController
end
end
- class UrlGenerationError < ActionControllerError #:nodoc:
+ class UrlGenerationError < ActionControllerError # :nodoc:
attr_reader :routes, :route_name, :method_name
def initialize(message, routes = nil, route_name = nil, method_name = nil)
@@ -47,19 +47,19 @@ module ActionController
end
end
- class MethodNotAllowed < ActionControllerError #:nodoc:
+ class MethodNotAllowed < ActionControllerError # :nodoc:
def initialize(*allowed_methods)
super("Only #{allowed_methods.to_sentence} requests are allowed.")
end
end
- class NotImplemented < MethodNotAllowed #:nodoc:
+ class NotImplemented < MethodNotAllowed # :nodoc:
end
- class MissingFile < ActionControllerError #:nodoc:
+ class MissingFile < ActionControllerError # :nodoc:
end
- class SessionOverflowError < ActionControllerError #:nodoc:
+ class SessionOverflowError < ActionControllerError # :nodoc:
DEFAULT_MESSAGE = "Your session data is larger than the data column in which it is to be stored. You must increase the size of your data column if you intend to store large data."
def initialize(message = nil)
@@ -67,10 +67,10 @@ module ActionController
end
end
- class UnknownHttpMethod < ActionControllerError #:nodoc:
+ class UnknownHttpMethod < ActionControllerError # :nodoc:
end
- class UnknownFormat < ActionControllerError #:nodoc:
+ class UnknownFormat < ActionControllerError # :nodoc:
end
# Raised when a nested respond_to is triggered and the content types of each
@@ -91,6 +91,6 @@ module ActionController
end
end
- class MissingExactTemplate < UnknownFormat #:nodoc:
+ class MissingExactTemplate < UnknownFormat # :nodoc:
end
end
diff --git a/actionpack/lib/action_controller/metal/flash.rb b/actionpack/lib/action_controller/metal/flash.rb
index fc69d75416..237197d17f 100644
--- a/actionpack/lib/action_controller/metal/flash.rb
+++ b/actionpack/lib/action_controller/metal/flash.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-module ActionController #:nodoc:
+module ActionController # :nodoc:
module Flash
extend ActiveSupport::Concern
@@ -42,7 +42,7 @@ module ActionController #:nodoc:
end
end
- def action_methods #:nodoc:
+ def action_methods # :nodoc:
@action_methods ||= super - _flash_types.map(&:to_s).to_set
end
end
diff --git a/actionpack/lib/action_controller/metal/instrumentation.rb b/actionpack/lib/action_controller/metal/instrumentation.rb
index cc70d30aa1..cbc5c4fee2 100644
--- a/actionpack/lib/action_controller/metal/instrumentation.rb
+++ b/actionpack/lib/action_controller/metal/instrumentation.rb
@@ -99,7 +99,7 @@ module ActionController
# A hook which allows other frameworks to log what happened during
# controller process action. This method should return an array
# with the messages to be added.
- def log_process_action(payload) #:nodoc:
+ def log_process_action(payload) # :nodoc:
messages, view_runtime = [], payload[:view_runtime]
messages << ("Views: %.1fms" % view_runtime.to_f) if view_runtime
messages
diff --git a/actionpack/lib/action_controller/metal/live.rb b/actionpack/lib/action_controller/metal/live.rb
index ca7d3d6382..77c9d4a227 100644
--- a/actionpack/lib/action_controller/metal/live.rb
+++ b/actionpack/lib/action_controller/metal/live.rb
@@ -124,7 +124,7 @@ module ActionController
class ClientDisconnected < RuntimeError
end
- class Buffer < ActionDispatch::Response::Buffer #:nodoc:
+ class Buffer < ActionDispatch::Response::Buffer # :nodoc:
include MonitorMixin
class << self
@@ -230,7 +230,7 @@ module ActionController
end
end
- class Response < ActionDispatch::Response #:nodoc: all
+ class Response < ActionDispatch::Response # :nodoc: all
private
def before_committed
super
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb
index fda5dbbc03..fb32257ebe 100644
--- a/actionpack/lib/action_controller/metal/mime_responds.rb
+++ b/actionpack/lib/action_controller/metal/mime_responds.rb
@@ -2,7 +2,7 @@
require "abstract_controller/collector"
-module ActionController #:nodoc:
+module ActionController # :nodoc:
module MimeResponds
# Without web-service support, an action which collects the data for displaying a list of people
# might look something like this:
@@ -289,7 +289,7 @@ module ActionController #:nodoc:
@format = request.negotiate_mime(@responses.keys)
end
- class VariantCollector #:nodoc:
+ class VariantCollector # :nodoc:
def initialize(variant = nil)
@variant = variant
@variants = {}
diff --git a/actionpack/lib/action_controller/metal/permissions_policy.rb b/actionpack/lib/action_controller/metal/permissions_policy.rb
index 6325219549..dff1c065f5 100644
--- a/actionpack/lib/action_controller/metal/permissions_policy.rb
+++ b/actionpack/lib/action_controller/metal/permissions_policy.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-module ActionController #:nodoc:
+module ActionController # :nodoc:
# HTTP Permissions Policy is a web standard for defining a mechanism to
# allow and deny the use of browser permissions in its own context, and
# in content within any