example/rails3/app/controllers/application_controller.rb in rest-more-1.0.1 vs example/rails3/app/controllers/application_controller.rb in rest-more-1.0.2
- old
+ new
@@ -1,11 +1,10 @@
class ApplicationController < ActionController::Base
protect_from_forgery
include RestCore::Facebook::RailsUtil
- include RestCore::Flurry::RailsUtil
before_filter :filter_common , :only => [:index]
before_filter :filter_canvas , :only => [:canvas]
before_filter :filter_options , :only => [:options]
before_filter :filter_no_auto , :only => [:no_auto]
@@ -68,9 +67,14 @@
end
# regression test
def no_ns_pollution
render :text => Timeout::Error.name
+ end
+
+ def redirect_uri
+ rc_facebook_setup(:canvas => '')
+ render :text => rc_facebook_normalized_request_uri
end
private
def filter_common
rc_facebook_setup(:auto_authorize => true, :canvas => '')