has-attached 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/has-attached.gemspec +1 -1
- data/lib/has-attached.rb +2 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/has-attached.gemspec
CHANGED
data/lib/has-attached.rb
CHANGED
@@ -41,7 +41,8 @@ module HasAttached
|
|
41
41
|
if Rails.env.production? && Rails.application.config.respond_to?(:upload_attachments_to_s3) && Rails.application.config.upload_attachments_to_s3
|
42
42
|
options[:storage] = 's3'
|
43
43
|
options[:s3_credentials] = Rails.root.join("config", "s3.yml")
|
44
|
-
options[:path]
|
44
|
+
options[:path] = "/attachments/:class/:id/:attachment/:style/:basename.:extension"
|
45
|
+
options[:url] = :s3_domain_url
|
45
46
|
else
|
46
47
|
options[:storage] = 'filesystem'
|
47
48
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has-attached
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
segments:
|
124
124
|
- 0
|
125
|
-
hash:
|
125
|
+
hash: 3577889946484821849
|
126
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|