paperclip 3.1.0 → 3.1.1
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 +4 -0
- data/README.md +1 -1
- data/lib/paperclip/glue.rb +1 -7
- data/lib/paperclip/version.rb +1 -1
- metadata +2 -2
data/NEWS
CHANGED
data/README.md
CHANGED
@@ -253,7 +253,7 @@ If you're using Rails 3.2 or newer, you only need `add_attachment` in your `chan
|
|
253
253
|
|
254
254
|
### Vintage syntax
|
255
255
|
|
256
|
-
Vintage syntax (such as `t.has_attached_file` and `
|
256
|
+
Vintage syntax (such as `t.has_attached_file` and `drop_attached_file`) are still supported in
|
257
257
|
Paperclip 3.x, but you're advised to update those migration files to use this new syntax.
|
258
258
|
|
259
259
|
Storage
|
data/lib/paperclip/glue.rb
CHANGED
@@ -8,15 +8,9 @@ module Paperclip
|
|
8
8
|
base.extend ClassMethods
|
9
9
|
base.send :include, Callbacks
|
10
10
|
base.send :include, Validators
|
11
|
-
base.send :include, Schema
|
11
|
+
base.send :include, Schema if defined? ActiveRecord
|
12
12
|
base.class_attribute :attachment_definitions
|
13
13
|
|
14
|
-
if defined?(ActiveRecord)
|
15
|
-
ActiveRecord::ConnectionAdapters::AbstractAdapter.send(:include, Paperclip::Schema)
|
16
|
-
ActiveRecord::ConnectionAdapters::Table.send(:include, Paperclip::Schema)
|
17
|
-
ActiveRecord::ConnectionAdapters::TableDefinition.send(:include, Paperclip::Schema)
|
18
|
-
end
|
19
|
-
|
20
14
|
locale_path = Dir.glob(File.dirname(__FILE__) + "/locales/*.{rb,yml}")
|
21
15
|
I18n.load_path += locale_path unless I18n.load_path.include?(locale_path)
|
22
16
|
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.1
|
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-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|