diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2013-11-01 02:13:15 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2013-11-01 02:13:15 -0700 |
commit | 2e7ee652d2c1466787b45de59464ca096019e784 (patch) | |
tree | b0db65713968230ece18f6959f173bc9fcff70d8 /actionpack/lib/action_dispatch | |
parent | 1adcebdb582f1cd091c5472d864e7c97b99333d0 (diff) | |
parent | 816126862e040b787cf11c8143f326798803f67c (diff) | |
download | rails-2e7ee652d2c1466787b45de59464ca096019e784.tar.gz rails-2e7ee652d2c1466787b45de59464ca096019e784.tar.bz2 rails-2e7ee652d2c1466787b45de59464ca096019e784.zip |
Merge pull request #12727 from arunagw/aa-warnings-removed-ruby-trunk
Warnings removed for ruby trunk
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/exception_wrapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb b/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb index 1de3d14530..37bf9c8c9f 100644 --- a/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb +++ b/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb @@ -96,7 +96,7 @@ module ActionDispatch def source_fragment(path, line) return unless Rails.respond_to?(:root) && Rails.root full_path = Rails.root.join(path) - if File.exists?(full_path) + if File.exist?(full_path) File.open(full_path, "r") do |file| start = [line - 3, 0].max lines = file.each_line.drop(start).take(6) |