mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
use meaningful names with our variables
This commit is contained in:
parent
0155bf4021
commit
940404096f
1 changed files with 6 additions and 6 deletions
|
@ -134,14 +134,14 @@ module ActionView
|
|||
templates = []
|
||||
sanitizer = Hash.new { |h,k| h[k] = Dir["#{File.dirname(k)}/*"] }
|
||||
|
||||
Dir[query].each do |p|
|
||||
next if File.directory?(p) || !sanitizer[p].include?(p)
|
||||
Dir[query].each do |template|
|
||||
next if File.directory?(template) || !sanitizer[template].include?(template)
|
||||
|
||||
handler, format = extract_handler_and_format(p, formats)
|
||||
contents = File.binread p
|
||||
handler, format = extract_handler_and_format(template, formats)
|
||||
contents = File.binread template
|
||||
|
||||
templates << Template.new(contents, File.expand_path(p), handler,
|
||||
:virtual_path => path.virtual, :format => format, :updated_at => mtime(p))
|
||||
templates << Template.new(contents, File.expand_path(template), handler,
|
||||
:virtual_path => path.virtual, :format => format, :updated_at => mtime(template))
|
||||
end
|
||||
|
||||
templates
|
||||
|
|
Loading…
Reference in a new issue