diff options
author | Yoshiyuki Hirano <yhirano@me.com> | 2017-08-30 02:40:03 +0900 |
---|---|---|
committer | Yoshiyuki Hirano <yhirano@me.com> | 2017-08-30 02:40:03 +0900 |
commit | e38900b8453e8709943850b4651e1a1929c40967 (patch) | |
tree | 6565adf0db5b1eaedcf2a06728d096d067a50fae /activestorage/lib | |
parent | 9a66a22102db76896f400939165ec92280e092e7 (diff) | |
download | rails-e38900b8453e8709943850b4651e1a1929c40967.tar.gz rails-e38900b8453e8709943850b4651e1a1929c40967.tar.bz2 rails-e38900b8453e8709943850b4651e1a1929c40967.zip |
Update Active Storage docs [ci skip]
Diffstat (limited to 'activestorage/lib')
-rw-r--r-- | activestorage/lib/active_storage/attached/one.rb | 2 | ||||
-rw-r--r-- | activestorage/lib/active_storage/service.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/lib/active_storage/attached/one.rb b/activestorage/lib/active_storage/attached/one.rb index 2e5831348e..92a00c20a7 100644 --- a/activestorage/lib/active_storage/attached/one.rb +++ b/activestorage/lib/active_storage/attached/one.rb @@ -25,7 +25,7 @@ module ActiveStorage ActiveStorage::Attachment.create!(record: record, name: name, blob: create_blob_from(attachable)) end - # Returns true if an attachment has been made. + # Returns +true+ if an attachment has been made. # # class User < ActiveRecord::Base # has_one_attached :avatar diff --git a/activestorage/lib/active_storage/service.rb b/activestorage/lib/active_storage/service.rb index ce736b8728..b80fdea1ab 100644 --- a/activestorage/lib/active_storage/service.rb +++ b/activestorage/lib/active_storage/service.rb @@ -77,7 +77,7 @@ module ActiveStorage raise NotImplementedError end - # Return true if a file exists at the +key+. + # Return +true+ if a file exists at the +key+. def exist?(key) raise NotImplementedError end |