diff options
author | George Claghorn <george@basecamp.com> | 2017-12-31 13:08:36 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2017-12-31 13:08:36 -0500 |
commit | a470317b2ce87ef29bca6ce1f4a7c5cae379bb58 (patch) | |
tree | ef2feb5503d31f88e39fafddcd4645013e79f653 /activestorage/lib/active_storage | |
parent | 11995d6fd585e588c36cc4634a3c9b2a9f63c3e9 (diff) | |
download | rails-a470317b2ce87ef29bca6ce1f4a7c5cae379bb58.tar.gz rails-a470317b2ce87ef29bca6ce1f4a7c5cae379bb58.tar.bz2 rails-a470317b2ce87ef29bca6ce1f4a7c5cae379bb58.zip |
Expose ActiveStorage::Previewer#logger in API docs [ci skip]
Clarify that it's public API intended for use by third-party previewers. It shouldn't be removed without deprecation even though it isn't used by the built-in previewers.
Diffstat (limited to 'activestorage/lib/active_storage')
-rw-r--r-- | activestorage/lib/active_storage/previewer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/lib/active_storage/previewer.rb b/activestorage/lib/active_storage/previewer.rb index 81cdb6aedc..7db9ae5956 100644 --- a/activestorage/lib/active_storage/previewer.rb +++ b/activestorage/lib/active_storage/previewer.rb @@ -42,7 +42,7 @@ module ActiveStorage # end # # The output tempfile is opened in the directory returned by ActiveStorage::Downloading#tempdir. - def draw(*argv) # :doc: + def draw(*argv) #:doc: Tempfile.open("ActiveStorage", tempdir) do |file| capture(*argv, to: file) yield file @@ -55,7 +55,7 @@ module ActiveStorage to.rewind end - def logger + def logger #:doc: ActiveStorage.logger end end |