Module: Facebooker::Rails::Routing::RouteSetExtensions

Defined in:
lib/facebooker/rails/routing.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/facebooker/rails/routing.rb', line 5

def self.included(base)
  base.alias_method_chain :extract_request_environment, :facebooker
end

Instance Method Details

#extract_request_environment_with_facebooker(request) ⇒ Object



9
10
11
12
# File 'lib/facebooker/rails/routing.rb', line 9

def extract_request_environment_with_facebooker(request)
  env = extract_request_environment_without_facebooker(request)
  env.merge :canvas => (request.parameters[:fb_sig_in_canvas]=="1")
end