From b51c0d4d2521ef5e21f767d741252836e5fc5a30 Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Sat, 27 Feb 2010 17:28:29 -0800 Subject: 1.9 doesn't like lambda {} being called with arguments --- railties/lib/rails/console/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/lib/rails/console/app.rb b/railties/lib/rails/console/app.rb index 4524aca809..f62d1c14ba 100644 --- a/railties/lib/rails/console/app.rb +++ b/railties/lib/rails/console/app.rb @@ -26,7 +26,7 @@ end # reloads the environment def reload!(print=true) puts "Reloading..." if print - ActionDispatch::Callbacks.new(lambda {}, false).call({}) + ActionDispatch::Callbacks.new(Proc.new {}, false).call({}) true end -- cgit v1.2.3