plataforma_social 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
@@ -72,14 +72,16 @@ module PlataformaSocial
|
|
72
72
|
}.html_safe
|
73
73
|
end
|
74
74
|
|
75
|
-
def custom_redirect_to path, options = {}
|
75
|
+
def custom_redirect_to path, options = {}, protocol = ''
|
76
76
|
options.each_pair do |key, value|
|
77
77
|
cookies[key] = value
|
78
78
|
end
|
79
79
|
|
80
|
+
protocol = "#{protocol}:" if protocol.present?
|
81
|
+
|
80
82
|
render :text => %Q{
|
81
83
|
<script type="text/javascript" charset="utf-8">
|
82
|
-
window.top.location = "//apps.facebook.com/#{PlataformaSocial.facebook_app_namespace}#{path}";
|
84
|
+
window.top.location = "#{protocol}//apps.facebook.com/#{PlataformaSocial.facebook_app_namespace}#{path}";
|
83
85
|
</script>
|
84
86
|
}
|
85
87
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plataforma_social
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
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: 2013-
|
12
|
+
date: 2013-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|