Skip to content

Commit b87d8e5

Browse files
committed
Standardize :doc: comments [ci skip]
1 parent 6e7e812 commit b87d8e5

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

actionpack/lib/action_controller/metal/data_streaming.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module DataStreaming
6666
# https://www.mnot.net/cache_docs/ for an overview of web caching and
6767
# https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
6868
# for the Cache-Control header spec.
69-
def send_file(path, options = {}) #:doc:
69+
def send_file(path, options = {}) # :doc:
7070
raise MissingFile, "Cannot read file #{path}" unless File.file?(path) && File.readable?(path)
7171

7272
options[:filename] ||= File.basename(path) unless options[:url_based_filename]
@@ -106,7 +106,7 @@ def send_file(path, options = {}) #:doc:
106106
# send_data image.data, type: image.content_type, disposition: 'inline'
107107
#
108108
# See +send_file+ for more information on HTTP Content-* headers and caching.
109-
def send_data(data, options = {}) #:doc:
109+
def send_data(data, options = {}) # :doc:
110110
send_file_headers! options
111111
render options.slice(:status, :content_type).merge(body: data)
112112
end

actionpack/lib/action_controller/metal/flash.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def action_methods # :nodoc:
4848
end
4949

5050
private
51-
def redirect_to(options = {}, response_options_and_flash = {}) #:doc:
51+
def redirect_to(options = {}, response_options_and_flash = {}) # :doc:
5252
self.class._flash_types.each do |flash_type|
5353
if type = response_options_and_flash.delete(flash_type)
5454
flash[flash_type] = type

activestorage/app/controllers/concerns/active_storage/streaming.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module ActiveStorage::Streaming
88
private
99
# Stream the blob from storage directly to the response. The disposition can be controlled by setting +disposition+.
1010
# The content type and filename is set directly from the +blob+.
11-
def send_blob_stream(blob, disposition: nil) #:doc:
11+
def send_blob_stream(blob, disposition: nil) # :doc:
1212
send_stream(
1313
filename: blob.filename.sanitized,
1414
disposition: blob.forced_disposition_for_serving || disposition || DEFAULT_BLOB_STREAMING_DISPOSITION,

activestorage/lib/active_storage/analyzer.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ def metadata
2929

3030
private
3131
# Downloads the blob to a tempfile on disk. Yields the tempfile.
32-
def download_blob_to_tempfile(&block) #:doc:
32+
def download_blob_to_tempfile(&block) # :doc:
3333
blob.open tmpdir: tmpdir, &block
3434
end
3535

36-
def logger #:doc:
36+
def logger # :doc:
3737
ActiveStorage.logger
3838
end
3939

40-
def tmpdir #:doc:
40+
def tmpdir # :doc:
4141
Dir.tmpdir
4242
end
4343
end

activestorage/lib/active_storage/previewer.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def preview(**options)
2626

2727
private
2828
# Downloads the blob to a tempfile on disk. Yields the tempfile.
29-
def download_blob_to_tempfile(&block) #:doc:
29+
def download_blob_to_tempfile(&block) # :doc:
3030
blob.open tmpdir: tmpdir, &block
3131
end
3232

@@ -44,7 +44,7 @@ def download_blob_to_tempfile(&block) #:doc:
4444
# end
4545
#
4646
# The output tempfile is opened in the directory returned by #tmpdir.
47-
def draw(*argv) #:doc:
47+
def draw(*argv) # :doc:
4848
open_tempfile do |file|
4949
instrument :preview, key: blob.key do
5050
capture(*argv, to: file)
@@ -83,11 +83,11 @@ def capture(*argv, to:)
8383
to.rewind
8484
end
8585

86-
def logger #:doc:
86+
def logger # :doc:
8787
ActiveStorage.logger
8888
end
8989

90-
def tmpdir #:doc:
90+
def tmpdir # :doc:
9191
Dir.tmpdir
9292
end
9393
end

activestorage/lib/active_storage/transformers/transformer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def transform(file, format:)
3131
private
3232
# Returns an open Tempfile containing a transformed image in the given +format+.
3333
# All subclasses implement this method.
34-
def process(file, format:) #:doc:
34+
def process(file, format:) # :doc:
3535
raise NotImplementedError
3636
end
3737
end

0 commit comments

Comments
 (0)