diff options
author | Cliff Pruitt <cliff.pruitt@cliffpruitt.com> | 2019-04-01 19:29:03 -0400 |
---|---|---|
committer | Cliff Pruitt <cliff.pruitt@cliffpruitt.com> | 2019-04-01 19:29:03 -0400 |
commit | 90196398a14896e6a279cbbaa6651861360abc0f (patch) | |
tree | 4437b7c480a3d21c61764067d1319527c66eb9fa /actionview/lib/action_view/template | |
parent | beb0bc9907a31d0cbd2ca68c79c57a9e375761e8 (diff) | |
download | rails-90196398a14896e6a279cbbaa6651861360abc0f.tar.gz rails-90196398a14896e6a279cbbaa6651861360abc0f.tar.bz2 rails-90196398a14896e6a279cbbaa6651861360abc0f.zip |
Rename File to RawFile
Diffstat (limited to 'actionview/lib/action_view/template')
-rw-r--r-- | actionview/lib/action_view/template/error.rb | 2 | ||||
-rw-r--r-- | actionview/lib/action_view/template/raw_file.rb (renamed from actionview/lib/action_view/template/file.rb) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/template/error.rb b/actionview/lib/action_view/template/error.rb index aace0be04d..d0ea03e228 100644 --- a/actionview/lib/action_view/template/error.rb +++ b/actionview/lib/action_view/template/error.rb @@ -104,7 +104,7 @@ module ActionView def line_number @line_number ||= if file_name - regexp = /#{Regexp.escape ::File.basename(file_name)}:(\d+)/ + regexp = /#{Regexp.escape File.basename(file_name)}:(\d+)/ $1 if message =~ regexp || backtrace.find { |line| line =~ regexp } end end diff --git a/actionview/lib/action_view/template/file.rb b/actionview/lib/action_view/template/raw_file.rb index 487e5735cf..61818ba52f 100644 --- a/actionview/lib/action_view/template/file.rb +++ b/actionview/lib/action_view/template/raw_file.rb @@ -3,7 +3,7 @@ module ActionView #:nodoc: # = Action View File Template class Template #:nodoc: - class File #:nodoc: + class RawFile #:nodoc: attr_accessor :type, :format def initialize(filename) |