File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ ##################################################
2
+ # NOTE FOR UPGRADING FROM PRE-3.0 VERSION #
3
+ ##################################################
4
+
5
+ Paperclip 3.0 introduces a non-backward compatible change in your attachment
6
+ path. This will help to prevent attachment name clashes when you have
7
+ multiple attachments with the same name. If you didn't alter your
8
+ attachment's path and are using Paperclip's default, you'll have to add
9
+ `:path` and `:url` to your `has_attached_file` definition. For example:
10
+
11
+ has_attached_file :avatar,
12
+ :path => ":rails_root/public/system/:attachment/:id/:style/:filename",
13
+ :url => "/system/:attachment/:id/:style/:filename"
14
+
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ Gem::Specification.new do |s|
18
18
s . executables = `git ls-files -- bin/*` . split ( "\n " ) . map { |f | File . basename ( f ) }
19
19
s . require_paths = [ "lib" ]
20
20
21
+ if File . exists? ( 'UPGRADING' )
22
+ s . post_install_message = File . read ( "UPGRADING" )
23
+ end
24
+
21
25
s . requirements << "ImageMagick"
22
26
23
27
s . add_dependency ( 'activerecord' , '>= 3.0.0' )
You can’t perform that action at this time.
0 commit comments