File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed
actionpack/lib/action_controller/metal
app/controllers/concerns/active_storage Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ module DataStreaming
66
66
# https://www.mnot.net/cache_docs/ for an overview of web caching and
67
67
# https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
68
68
# for the Cache-Control header spec.
69
- def send_file ( path , options = { } ) #:doc:
69
+ def send_file ( path , options = { } ) # :doc:
70
70
raise MissingFile , "Cannot read file #{ path } " unless File . file? ( path ) && File . readable? ( path )
71
71
72
72
options [ :filename ] ||= File . basename ( path ) unless options [ :url_based_filename ]
@@ -106,7 +106,7 @@ def send_file(path, options = {}) #:doc:
106
106
# send_data image.data, type: image.content_type, disposition: 'inline'
107
107
#
108
108
# 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:
110
110
send_file_headers! options
111
111
render options . slice ( :status , :content_type ) . merge ( body : data )
112
112
end
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def action_methods # :nodoc:
48
48
end
49
49
50
50
private
51
- def redirect_to ( options = { } , response_options_and_flash = { } ) #:doc:
51
+ def redirect_to ( options = { } , response_options_and_flash = { } ) # :doc:
52
52
self . class . _flash_types . each do |flash_type |
53
53
if type = response_options_and_flash . delete ( flash_type )
54
54
flash [ flash_type ] = type
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ module ActiveStorage::Streaming
8
8
private
9
9
# Stream the blob from storage directly to the response. The disposition can be controlled by setting +disposition+.
10
10
# 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:
12
12
send_stream (
13
13
filename : blob . filename . sanitized ,
14
14
disposition : blob . forced_disposition_for_serving || disposition || DEFAULT_BLOB_STREAMING_DISPOSITION ,
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ def metadata
29
29
30
30
private
31
31
# 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:
33
33
blob . open tmpdir : tmpdir , &block
34
34
end
35
35
36
- def logger #:doc:
36
+ def logger # :doc:
37
37
ActiveStorage . logger
38
38
end
39
39
40
- def tmpdir #:doc:
40
+ def tmpdir # :doc:
41
41
Dir . tmpdir
42
42
end
43
43
end
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def preview(**options)
26
26
27
27
private
28
28
# 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:
30
30
blob . open tmpdir : tmpdir , &block
31
31
end
32
32
@@ -44,7 +44,7 @@ def download_blob_to_tempfile(&block) #:doc:
44
44
# end
45
45
#
46
46
# The output tempfile is opened in the directory returned by #tmpdir.
47
- def draw ( *argv ) #:doc:
47
+ def draw ( *argv ) # :doc:
48
48
open_tempfile do |file |
49
49
instrument :preview , key : blob . key do
50
50
capture ( *argv , to : file )
@@ -83,11 +83,11 @@ def capture(*argv, to:)
83
83
to . rewind
84
84
end
85
85
86
- def logger #:doc:
86
+ def logger # :doc:
87
87
ActiveStorage . logger
88
88
end
89
89
90
- def tmpdir #:doc:
90
+ def tmpdir # :doc:
91
91
Dir . tmpdir
92
92
end
93
93
end
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def transform(file, format:)
31
31
private
32
32
# Returns an open Tempfile containing a transformed image in the given +format+.
33
33
# All subclasses implement this method.
34
- def process ( file , format :) #:doc:
34
+ def process ( file , format :) # :doc:
35
35
raise NotImplementedError
36
36
end
37
37
end
You can’t perform that action at this time.
0 commit comments