diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-15 02:29:36 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-15 02:29:36 +0000 |
commit | ee0ea35d910174f2a2ce2483672b705960b52f95 (patch) | |
tree | 83ff3f1bb5664d62c859f40f875489d70f71f847 /actionpack/lib/action_controller | |
parent | 525cac7f828c432e8f56d56424227b053c78febe (diff) | |
download | rails-ee0ea35d910174f2a2ce2483672b705960b52f95.tar.gz rails-ee0ea35d910174f2a2ce2483672b705960b52f95.tar.bz2 rails-ee0ea35d910174f2a2ce2483672b705960b52f95.zip |
Ruby 1.9 compat: helpers
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/helpers.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/helpers.rb b/actionpack/lib/action_controller/helpers.rb index 3a559efbc6..81b8ff9753 100644 --- a/actionpack/lib/action_controller/helpers.rb +++ b/actionpack/lib/action_controller/helpers.rb @@ -1,3 +1,4 @@ +# FIXME: helper { ... } is broken on Ruby 1.9 module ActionController #:nodoc: module Helpers #:nodoc: HELPERS_DIR = (defined?(RAILS_ROOT) ? "#{RAILS_ROOT}/app/helpers" : "app/helpers") @@ -120,7 +121,7 @@ module ActionController #:nodoc: begin require_dependency(file_name) rescue LoadError => load_error - requiree = / -- (.*?)(\.rb)?$/.match(load_error).to_a[1] + requiree = / -- (.*?)(\.rb)?$/.match(load_error.message).to_a[1] if requiree == file_name msg = "Missing helper file helpers/#{file_name}.rb" raise LoadError.new(msg).copy_blame!(load_error) |