paperclip-s3 1.0.0pre2 → 1.0.0pre3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/paperclip-s3.rb +5 -4
- data/lib/paperclip-s3/version.rb +1 -1
- metadata +2 -2
data/lib/paperclip-s3.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
require 'paperclip'
|
1
2
|
require "paperclip-s3/version"
|
2
3
|
|
3
|
-
module
|
4
|
-
module
|
5
|
-
module
|
4
|
+
module Zinergia
|
5
|
+
module Paperclip
|
6
|
+
module S3
|
6
7
|
# Extends the paperclips has_attached_file method
|
7
8
|
# It will use S3 Storage. The credentials will be read from the environment
|
8
9
|
def has_attached_file(name, options = {})
|
@@ -21,4 +22,4 @@ module Paperclip
|
|
21
22
|
end
|
22
23
|
end
|
23
24
|
|
24
|
-
ActiveRecord::Base.send
|
25
|
+
ActiveRecord::Base.send(:extend, Zinergia::Paperclip::S3) if Rails.env.production?
|
data/lib/paperclip-s3/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: paperclip-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 5
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.0pre3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- "Nicol\xC3\xA1s Hock Isaza"
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-06-
|
13
|
+
date: 2011-06-10 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|