Permalink
Browse files

update fb_connect to use jquery, dojo, mootools or if not specified p…

…rototype
  • Loading branch information...
sikatizen authored and mmangino committed Mar 2, 2010
1 parent 9d6349d commit 51cc4bda1e51a28b8f8764c3683aad0262661155
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/facebooker/rails/helpers/fb_connect.rb
@@ -20,14 +20,14 @@ def fb_connect_javascript_tag(options = {})
# and Rails' Hash#to_json always quotes strings so there is no way to indicate when the value should be a javascript function.
# For this reason :app_settings needs to be a string that is valid JSON (including the {}'s).
#
- def init_fb_connect(*required_features,&proc)
+ def init_fb_connect(options = {},*required_features, &proc)
additions = ""
if block_given?
additions = capture(&proc)
end
# Yes, app_settings is set to a string of an empty JSON element. That's intentional.
- options = {:app_settings => '{}'}
+ options = options.merge({:app_settings => '{}'})
if required_features.last.is_a?(Hash)
options.merge!(required_features.pop.symbolize_keys)

0 comments on commit 51cc4bd

Please sign in to comment.