diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-22 10:11:36 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-22 10:11:36 +0000 |
commit | 06160fd3e85e99374ac09bb941aa499eba7a98c5 (patch) | |
tree | e5ababf966ff035ebcdecb390ba73dac715ed9a9 /actionpack/lib/action_view/base.rb | |
parent | 8b1b72bb0d3f70b2a840ce6863775ef91f63ae14 (diff) | |
download | rails-06160fd3e85e99374ac09bb941aa499eba7a98c5.tar.gz rails-06160fd3e85e99374ac09bb941aa499eba7a98c5.tar.bz2 rails-06160fd3e85e99374ac09bb941aa499eba7a98c5.zip |
Use debug to report compilation of erb templates
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 4004ad3326..15f1ea739c 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -287,16 +287,13 @@ module ActionView #:nodoc: self.class.class_eval "def #{key}=(v); #{varstr} = v; end" end end - #if logger - # logger.info "assigns: #{@assigns.keys.join', '}" - # logger.info "local_assigns: [#{local_assigns.keys.join', '}]" if local_assigns - # logger.info "saved_locals: [#{local_assigns.keys.join', '}]" if saved_locals - #end + saved_locals end def compile_erb_template(template, file_name) cache_name = file_name || template + unless @@compiled_erb_templates[cache_name] erb = ERB.new(template, nil, @@erb_trim_mode) erb_name = 'run_erb_' @@ -317,8 +314,9 @@ module ActionView #:nodoc: @@compiled_erb_templates[cache_name] = erb_name.intern @@loaded_templates[cache_name] = Time.now if file_name - logger.info "Compiled erb template #{cache_name}\n ==> #{erb_name}" if logger + logger.debug "Compiled erb template #{cache_name}\n ==> #{erb_name}" if logger end + @@compiled_erb_templates[cache_name] end |