file_column_with_s3 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/file_column.rb +5 -1
- metadata +4 -4
data/lib/file_column.rb
CHANGED
|
@@ -724,7 +724,11 @@ module FileColumn # :nodoc:
|
|
|
724
724
|
return nil unless relative_path
|
|
725
725
|
|
|
726
726
|
store = state.store
|
|
727
|
-
|
|
727
|
+
if my_options[:public]
|
|
728
|
+
return store.public_url(relative_path, store_url_for_option) if store && store.respond_to?(:public_url)
|
|
729
|
+
else
|
|
730
|
+
return store.url_for(relative_path, store_url_for_option) if store && store.respond_to?(:url_for)
|
|
731
|
+
end
|
|
728
732
|
|
|
729
733
|
url = ""
|
|
730
734
|
url << context_path if context_path
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: file_column_with_s3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 8
|
|
10
|
+
version: 0.1.8
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Mingle SaaS team
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2014-07-
|
|
18
|
+
date: 2014-07-24 00:00:00 -07:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|