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
249bf0ae
Commit
249bf0ae
authored
Jan 31, 2011
by
Chad Pytel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix the <attachment> stuff for markdown"
This reverts commit
1cdabfcc
.
parent
1cdabfcc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
README.md
+7
-7
No files found.
README.md
View file @
249bf0ae
...
...
@@ -81,15 +81,15 @@ The basics of paperclip are quite simple: Declare that your model has an
attachment with the has_attached_file method, and give it a name. Paperclip
will wrap up up to four attributes (all prefixed with that attachment's name,
so you can have multiple attachments per model if you wish) and give the a
friendly front end. The attributes are
`
:attachment
_file_name`
,
`
:attachment_file_size`
,
`:attachment_content_type`
, and
`:attachment
_updated_at`
.
Only
`
:attachment
_file_name`
is required for paperclip to operate. More
friendly front end. The attributes are
`
<attachment>
_file_name`
,
`
<attachment>_file_size`
,
`<attachment>_content_type`
, and
`<attachment>
_updated_at`
.
Only
`
<attachment>
_file_name`
is required for paperclip to operate. More
information about the options to has_attached_file is available in the
documentation of Paperclip::ClassMethods.
Attachments can be validated with Paperclip's validation methods,
`validates_attachment_presence`
,
`validates_attachment_content_type`
, and
`validates_attachment_size`
.
validates_attachment_presence, validates_attachment_content_type
, and
validates_attachment_size
.
Storage
-------
...
...
@@ -170,8 +170,8 @@ Before and after the Post Processing step, Paperclip calls back to the model
with a few callbacks, allowing the model to change or cancel the processing
step. The callbacks are "before_post_process" and "after_post_process" (which
are called before and after the processing of each attachment), and the
attachment-specific "before_
:attachment
_post_process" and
"after_
:attachment
_post_process". The callbacks are intended to be as close to
attachment-specific "before_
<attachment>
_post_
process" and
"after_
<attachment>
_post_
process". The callbacks are intended to be as close to
normal ActiveRecord callbacks as possible, so if you return false (specifically
-
returning nil is not the same) in a before_ filter, the post processing step
will halt. Returning false in an after_ filter will not halt anything, but you
...
...
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