diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-08-11 12:36:07 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-08-11 13:15:23 +0900 |
commit | d90f26156279c2dd53eaabeb8794e8ecd2b3d0fa (patch) | |
tree | 56870b6d6dbcd30ca26d03063dcbeb8b947ae267 /activestorage/lib | |
parent | cb3c227c456bcbcd91c4a8fac4ff46f255621514 (diff) | |
download | rails-d90f26156279c2dd53eaabeb8794e8ecd2b3d0fa.tar.gz rails-d90f26156279c2dd53eaabeb8794e8ecd2b3d0fa.tar.bz2 rails-d90f26156279c2dd53eaabeb8794e8ecd2b3d0fa.zip |
Fix formatting of Active Storage docs [ci skip]
Follow up of #30188.
Diffstat (limited to 'activestorage/lib')
-rw-r--r-- | activestorage/lib/active_storage/service.rb | 2 | ||||
-rw-r--r-- | activestorage/lib/active_storage/service/mirror_service.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/lib/active_storage/service.rb b/activestorage/lib/active_storage/service.rb index 51ae6619a8..4dd6eb6045 100644 --- a/activestorage/lib/active_storage/service.rb +++ b/activestorage/lib/active_storage/service.rb @@ -89,7 +89,7 @@ module ActiveStorage # Returns a signed, temporary URL that a direct upload file can be PUT to on the +key+. # The URL will be valid for the amount of seconds specified in +expires_in+. - # You most also provide the +content_type+, +content_length+, and `+hecksum+ of the file + # You most also provide the +content_type+, +content_length+, and +checksum+ of the file # that will be uploaded. All these attributes will be validated by the service upon upload. def url_for_direct_upload(key, expires_in:, content_type:, content_length:, checksum:) raise NotImplementedError diff --git a/activestorage/lib/active_storage/service/mirror_service.rb b/activestorage/lib/active_storage/service/mirror_service.rb index 43fa046643..8491df4911 100644 --- a/activestorage/lib/active_storage/service/mirror_service.rb +++ b/activestorage/lib/active_storage/service/mirror_service.rb @@ -3,7 +3,7 @@ require "active_support/core_ext/module/delegation" module ActiveStorage # Wraps a set of mirror services and provides a single ActiveStorage::Service object that will all # have the files uploaded to them. A +primary+ service is designated to answer calls to +download+, +exists?+, - # and `url`. + # and +url+. class Service::MirrorService < Service attr_reader :primary, :mirrors |