Skip to content

Commit

Permalink
Merge pull request #4 from flpjck/patch_method
Browse files Browse the repository at this point in the history
add PATCH to wrapped rack methods
  • Loading branch information
thoughtless committed Apr 17, 2014
2 parents 082ae86 + 7a7b340 commit f85cf29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/async_rack_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def use_async
self.instance_eval { class << self; self; end }.class_eval { alias :app :async_app }
end

%w(get put post delete head options).each do |m|
%w(get post put patch delete head options).each do |m|
eval <<-RUBY, binding, __FILE__, __LINE__ + 1
def a#{m}(*args)
use_sync
Expand Down

0 comments on commit f85cf29

Please sign in to comment.