Permalink
Browse files

jruby/rbx don't support passing block to glob

  • Loading branch information...
1 parent 3c99695 commit 90ca07076c662bf327fa4af7a5cbf1a34ade971e @rkh committed Mar 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/sugar.rb
View
@@ -79,7 +79,7 @@ def root_path(*args)
# root_glob("app", "{models,views,controllers}", "*.rb") { |file| load file }
# end
def root_glob(*args, &block)
- Dir.glob(root_path(*args), &block)
+ Dir.glob(root_path(*args)).each(&block)
end
# Whether or not to start a webserver.

0 comments on commit 90ca070

Please sign in to comment.