diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-03-22 18:09:16 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-03-22 18:09:16 +0100 |
commit | bb048147912d7ea8c301acd6468e9f869dd0acad (patch) | |
tree | 16136e90158d5063f33dd41fb94cc61945c0fbb7 /actionview/lib | |
parent | 34fe2a4fc778d18b7fe6bdf3629c1481bee789b9 (diff) | |
download | rails-bb048147912d7ea8c301acd6468e9f869dd0acad.tar.gz rails-bb048147912d7ea8c301acd6468e9f869dd0acad.tar.bz2 rails-bb048147912d7ea8c301acd6468e9f869dd0acad.zip |
Stop complaining about not being able to digest dynamic template partial names and simplify error logging to a single line when not
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/digestor.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionview/lib/action_view/digestor.rb b/actionview/lib/action_view/digestor.rb index 0658d8601d..ba189e23fe 100644 --- a/actionview/lib/action_view/digestor.rb +++ b/actionview/lib/action_view/digestor.rb @@ -62,8 +62,10 @@ module ActionView node end else - logger.error " '#{name}' file doesn't exist, so no dependencies" - logger.error " Couldn't find template for digesting: #{name}" + unless name.include?('#') # Dynamic template partial names can never be tracked + logger.error " Couldn't find template for digesting: #{name}" + end + seen[name] ||= Missing.new(name, logical_name, nil) end end |