diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-11 11:52:21 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-11 11:52:21 -0800 |
commit | ca72f947acf663a2deacd332a96aac9979ed13bd (patch) | |
tree | c61fd49ffee6afdc5945658f973808dd07e00682 | |
parent | fffbf9bd067f3cfdccae583447de48585d69008c (diff) | |
download | rails-ca72f947acf663a2deacd332a96aac9979ed13bd.tar.gz rails-ca72f947acf663a2deacd332a96aac9979ed13bd.tar.bz2 rails-ca72f947acf663a2deacd332a96aac9979ed13bd.zip |
follow indentation rules
-rw-r--r-- | actionview/lib/action_view/digestor.rb | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/actionview/lib/action_view/digestor.rb b/actionview/lib/action_view/digestor.rb index 1c66c2c2cd..975275b557 100644 --- a/actionview/lib/action_view/digestor.rb +++ b/actionview/lib/action_view/digestor.rb @@ -65,9 +65,14 @@ module ActionView def digest Digest::MD5.hexdigest("#{source}-#{dependency_digest}").tap do |digest| logger.debug " Cache digest for #{template.inspect}: #{digest}" + puts " Cache digest for #{template.inspect}: #{digest}" end - rescue ActionView::MissingTemplate + rescue ActionView::MissingTemplate => c logger.error " Couldn't find template for digesting: #{name}" + puts "#" * 90 + puts c.backtrace + puts "#" * 90 + puts " Couldn't find template for digesting: #{name}" '' end @@ -75,6 +80,7 @@ module ActionView DependencyTracker.find_dependencies(name, template, finder.view_paths) rescue ActionView::MissingTemplate logger.error " '#{name}' file doesn't exist, so no dependencies" + puts " '#{name}' file doesn't exist, so no dependencies" [] end @@ -86,10 +92,10 @@ module ActionView end private - class NullLogger - def self.debug(_); end - def self.error(_); end - end + class NullLogger + def self.debug(_); end + def self.error(_); end + end def logger ActionView::Base.logger || NullLogger |