lib/facebooker.rb in cbaclig-facebooker-1.0.67.2 vs lib/facebooker.rb in cbaclig-facebooker-1.0.67.3
- old
+ new
@@ -46,11 +46,11 @@
if defined? RAILS_ENV
@raw_facebooker_configuration = @raw_facebooker_configuration[RAILS_ENV]
end
Thread.current[:fb_api_config] = @raw_facebooker_configuration unless Thread.current[:fb_api_config]
apply_configuration(@raw_facebooker_configuration)
- end
+ end
# Sets the Facebook environment based on a hash of options.
# By default the hash passed in is loaded from facebooker.yml, but it can also be passed in
# manually every request to run multiple Facebook apps off one Rails app.
def apply_configuration(config)
@@ -168,10 +168,10 @@
def timeout
@timeout
end
- [:api_key,:secret_key, :www_server_base_url,:login_url_base,:install_url_base,:permission_url_base,:connect_permission_url_base,:api_rest_path,:api_server_base,:api_server_base_url,:canvas_server_base, :video_server_base].each do |delegated_method|
+ [:app_id, :api_key,:secret_key, :www_server_base_url,:login_url_base,:install_url_base,:permission_url_base,:connect_permission_url_base,:api_rest_path,:api_server_base,:api_server_base_url,:canvas_server_base, :video_server_base].each do |delegated_method|
define_method(delegated_method){ return current_adapter.send(delegated_method)}
end
attr_reader :path_prefix