[Facebooker-talk] Change since Sept 4 breaks stylesheet, javascript links
Paul Covell
paul.covell at gmail.com
Wed Sep 17 01:43:41 EDT 2008
Hi guys -- the commit d6874ec47a51065f0d98e1a966ae5540486fe1b6 breaks
the callback_url assigning in Facebooker+Rails. I noticed it because
my stylesheets + javascript stopped linking in.
Here is my diff against the head that does what I think you were
trying to do (Module.const_defined? --> Object.const_defined?). It
restores the functionality back to the pre-d6.. commit.
diff --git a/lib/facebooker.rb b/lib/facebooker.rb
index c79cb92..b28f2d7 100644
--- a/lib/facebooker.rb
+++ b/lib/facebooker.rb
@@ -65,7 +65,7 @@ module Facebooker
ENV['FACEBOOK_SECRET_KEY'] = facebooker['secret_key']
ENV['FACEBOOKER_RELATIVE_URL_ROOT'] =
facebooker['canvas_page_name']
ENV['FACEBOOKER_API'] = facebooker['api']
- if Module.const_defined?("ActionController")
+ if Object.const_defined?("ActionController")
ActionController::Base.asset_host =
facebooker['callback_url'] if(ActionController::Base.
end
@facebooker_configuration = facebooker
---> Additional data:
On commit 37a732248d3b1d107add30847616efd02826b1e4 (HEAD):
<script src="/javascripts/application.js?1220940279" type="text/
javascript"></script>
On commit ee9e0b728e1cc0d02c856d90f82297806040b128:
<script src="http://<my ip>/javascripts/application.js?1220940279"
type="text/javascript"></script>
-Paul
More information about the Facebooker-talk
mailing list