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
fc061f6c
Commit
fc061f6c
authored
Oct 12, 2012
by
Jon Yurek
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1045 from darrenli/updated-comments
Fix language and typo in comments.
parents
5f52d894
b35c9b8c
Hide 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 @
fc061f6c
...
...
@@ -46,7 +46,7 @@ module Paperclip
# +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
# +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
# +use_timestamp+ - whether to append an anti-caching timestamp to image URLs. Defaults to true
# +whiny+, +whiny_thumbnails+ - whether to raise when thumbnailing fails
...
...
@@ -57,7 +57,7 @@ module Paperclip
# +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
# +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
# +url_generator+ - the object used to generate URLs, using the interpolator. Defaults to Paperclip::UrlGenerator
def
initialize
(
name
,
instance
,
options
=
{})
...
...
@@ -244,7 +244,7 @@ module Paperclip
end
# 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
instance_read
(
:fingerprint
)
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