Class: Rack::PostCanvas
- Inherits:
-
Object
- Object
- Rack::PostCanvas
- Defined in:
- lib/facebooker2/rack/post_canvas.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ PostCanvas
constructor
A new instance of PostCanvas.
Constructor Details
#initialize(app) ⇒ PostCanvas
Returns a new instance of PostCanvas.
8 9 10 |
# File 'lib/facebooker2/rack/post_canvas.rb', line 8 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/facebooker2/rack/post_canvas.rb', line 12 def call(env) request = Request.new(env) if request.POST['signed_request'] env["REQUEST_METHOD"] = 'GET' end return @app.call(env) end |