Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
b35c9b8c
Commit
b35c9b8c
authored
Oct 10, 2012
by
darrenli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix language and typo in comments.
parent
5f52d894
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/paperclip/attachment.rb
+3
-3
No files found.
lib/paperclip/attachment.rb
View file @
b35c9b8c
...
@@ -46,7 +46,7 @@ module Paperclip
...
@@ -46,7 +46,7 @@ module Paperclip
# +styles+ - a hash of options for processing the attachment. See +has_attached_file+ for the details
# +styles+ - a hash of options for processing the attachment. See +has_attached_file+ for the details
# +only_process+ - style args to be run through the post-processor. This defaults to the empty list
# +only_process+ - style args to be run through the post-processor. This defaults to the empty list
# +default_url+ - a URL for the missing image
# +default_url+ - a URL for the missing image
# +default_style+ - the style to use when
don't specify an argument to
e.g. #url, #path
# +default_style+ - the style to use when
an argument is not specified
e.g. #url, #path
# +storage+ - the storage mechanism. Defaults to :filesystem
# +storage+ - the storage mechanism. Defaults to :filesystem
# +use_timestamp+ - whether to append an anti-caching timestamp to image URLs. Defaults to true
# +use_timestamp+ - whether to append an anti-caching timestamp to image URLs. Defaults to true
# +whiny+, +whiny_thumbnails+ - whether to raise when thumbnailing fails
# +whiny+, +whiny_thumbnails+ - whether to raise when thumbnailing fails
...
@@ -57,7 +57,7 @@ module Paperclip
...
@@ -57,7 +57,7 @@ module Paperclip
# +convert_options+ - flags passed to the +convert+ command for processing
# +convert_options+ - flags passed to the +convert+ command for processing
# +source_file_options+ - flags passed to the +convert+ command that controls how the file is read
# +source_file_options+ - flags passed to the +convert+ command that controls how the file is read
# +processors+ - classes that transform the attachment. Defaults to [:thumbnail]
# +processors+ - classes that transform the attachment. Defaults to [:thumbnail]
# +preserve_files+ - whether to keep files on the filesystem when deleting
to
clearing the attachment. Defaults to false
# +preserve_files+ - whether to keep files on the filesystem when deleting
or
clearing the attachment. Defaults to false
# +interpolator+ - the object used to interpolate filenames and URLs. Defaults to Paperclip::Interpolations
# +interpolator+ - the object used to interpolate filenames and URLs. Defaults to Paperclip::Interpolations
# +url_generator+ - the object used to generate URLs, using the interpolator. Defaults to Paperclip::UrlGenerator
# +url_generator+ - the object used to generate URLs, using the interpolator. Defaults to Paperclip::UrlGenerator
def
initialize
(
name
,
instance
,
options
=
{})
def
initialize
(
name
,
instance
,
options
=
{})
...
@@ -244,7 +244,7 @@ module Paperclip
...
@@ -244,7 +244,7 @@ module Paperclip
end
end
# Returns the fingerprint of the file, if one's defined. The fingerprint is
# Returns the fingerprint of the file, if one's defined. The fingerprint is
# stored in the <attachment>_fingerprin
g
attribute of the model.
# stored in the <attachment>_fingerprin
t
attribute of the model.
def
fingerprint
def
fingerprint
instance_read
(
:fingerprint
)
instance_read
(
:fingerprint
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment