Permalink
Browse files

Support for Merb 0.9.4 handling of fb_sig_request_method

Signed-off-by: Chris Van Pelt <vanpelt@gmail.com>
  • Loading branch information...
1 parent 01f265a commit 4c16306a128da48d8b1a430f85440e3bcd462cad @ivey ivey committed with Jun 22, 2008
Showing with 4 additions and 1 deletion.
  1. +1 −1 Rakefile
  2. +3 −0 lib/merb_facebooker.rb
View
@@ -20,7 +20,7 @@ spec = Gem::Specification.new do |s|
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE
- s.add_dependency('merb-core', '>= 0.9.0')
+ s.add_dependency('merb-core', '>= 0.9.4')
s.add_dependency('facebooker')
s.require_path = 'lib'
s.autorequire = PLUGIN
View
@@ -17,6 +17,9 @@
end
Merb.add_mime_type(:fbml, :to_fbml, %w[application/fbml text/fbml], :Encoding => "UTF-8")
+ Merb::Request.http_method_overrides.push(
+ proc { |c| c.params[:fb_sig_request_method] }
+ )
Merb::BootLoader.before_app_loads do
Merb::Controller.send(:include, Facebooker::Merb::Controller)

0 comments on commit 4c16306

Please sign in to comment.