helper_methods 0.0.12 → 0.0.13
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/helper_methods/version.rb +1 -1
- data/lib/helper_methods.rb +2 -1
- metadata +2 -2
data/lib/helper_methods.rb
CHANGED
|
@@ -151,7 +151,8 @@ module HelperMethods
|
|
|
151
151
|
end
|
|
152
152
|
|
|
153
153
|
def attachment_url(file, style = :original)
|
|
154
|
-
|
|
154
|
+
protocol = request.ssl? ? 'https' : 'http'
|
|
155
|
+
"#{protocol}//#{request.host_with_port}#{file.url(style)}"
|
|
155
156
|
end
|
|
156
157
|
|
|
157
158
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: helper_methods
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.13
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
46
46
|
version: '0'
|
|
47
47
|
requirements: []
|
|
48
48
|
rubyforge_project:
|
|
49
|
-
rubygems_version: 1.8.
|
|
49
|
+
rubygems_version: 1.8.24
|
|
50
50
|
signing_key:
|
|
51
51
|
specification_version: 3
|
|
52
52
|
summary: Helper methods that helps you to DRY
|