plataforma_social 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ module PlataformaSocial
25
25
  %Q{
26
26
  <script type="text/javascript" charset="utf-8">
27
27
  $(function(){
28
- $('body').bind('ajaxSend', function(elm, xhr, s){
28
+ $(document).ajaxSend(function(elm, xhr, s){
29
29
  var method = s.type;
30
30
  var defaultParams = #{default_params.to_json};
31
31
  var params = {};
@@ -81,12 +81,13 @@ module PlataformaSocial
81
81
  super
82
82
  else
83
83
  unless block_given?
84
- referer = request.referer
85
- facebook_domain = 'apps.facebook.com'
86
84
 
87
- if params[:controller].index(PlataformaSocial.admin_controller_name) == 0
85
+ if params[:controller].index(PlataformaSocial.admin_controller_name) == 0 || defined? request
88
86
  super
89
87
  else
88
+ referer = request.referer
89
+ facebook_domain = 'apps.facebook.com'
90
+
90
91
  server_domain = request.env['HTTP_HOST']
91
92
  url = facebook_domain + '/' + PlataformaSocial.facebook_app_namespace
92
93
 
@@ -1,3 +1,3 @@
1
1
  module PlataformaSocial
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plataforma_social
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Marcos Nogueira
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-14 00:00:00 Z
18
+ date: 2013-03-18 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: capistrano