paperclip 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of paperclip might be problematic. Click here for more details.
- data/NEWS +6 -0
- data/lib/paperclip/schema.rb +1 -1
- data/lib/paperclip/version.rb +1 -1
- metadata +2 -2
data/NEWS
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
New in 3.1.2:
|
2
|
+
|
3
|
+
* Bug fix: #remove_attachment on 3.1.0 and 3.1.1 mistakenly trying to remove the column that has
|
4
|
+
the same name as data type (such as :string, :datetime, :interger.) You're advised to update to
|
5
|
+
Paperclip 3.1.2 as soon as possible.
|
6
|
+
|
1
7
|
New in 3.1.1:
|
2
8
|
|
3
9
|
* Bug fix: Paperclip will only load Paperclip::Schema only when Active Record is available.
|
data/lib/paperclip/schema.rb
CHANGED
@@ -34,7 +34,7 @@ module Paperclip
|
|
34
34
|
|
35
35
|
attachment_names.each do |attachment_name|
|
36
36
|
COLUMNS.each_pair do |column_name, column_type|
|
37
|
-
remove_column(table_name, "#{attachment_name}_#{column_name}"
|
37
|
+
remove_column(table_name, "#{attachment_name}_#{column_name}")
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
data/lib/paperclip/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|