Module: Sinatra::Facebook
- Defined in:
- lib/sinbook.rb
Constant Summary collapse
- FixRequestMethod =
proc{ if method = request.params['fb_sig_request_method'] request.env['REQUEST_METHOD'] = method end }
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
366 367 368 369 |
# File 'lib/sinbook.rb', line 366 def self.registered app app.helpers FacebookHelper app.before(&FixRequestMethod) end |
Instance Method Details
#facebook(&blk) ⇒ Object
356 357 358 |
# File 'lib/sinbook.rb', line 356 def facebook &blk FacebookSettings.new(self, &blk) end |