From e0438b1c071d8dc2c7fc87075485d4ac01f4eb07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Nie=C5=82acny?= Date: Thu, 16 May 2013 15:37:19 +0200 Subject: Show real LoadError on helpers require When helper try to require missing file rails will throw exception about missing helper. # app/helpers/my_helper.rb require 'missing' module MyHelper end And when we try do load helper class ApplicationController helper :my end Rails will throw exception. This is wrong because there is a helper file. Missing helper file helpers/my_helper.rb Now when helper try to require non-existed file rails will throw proper exception. No such file to load -- missing --- actionpack/test/abstract/.helper_test.rb.swp | Bin 0 -> 12288 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 actionpack/test/abstract/.helper_test.rb.swp (limited to 'actionpack/test/abstract/.helper_test.rb.swp') diff --git a/actionpack/test/abstract/.helper_test.rb.swp b/actionpack/test/abstract/.helper_test.rb.swp new file mode 100644 index 0000000000..d029f89288 Binary files /dev/null and b/actionpack/test/abstract/.helper_test.rb.swp differ -- cgit v1.2.3