diff options
author | Akira Matsuda <ronnie@dio.jp> | 2014-08-07 01:57:55 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2014-08-07 01:59:58 +0900 |
commit | 3dfcae6afa24b641bd838b9044c5ce9aa2a1a6db (patch) | |
tree | 48c8606eee309b9e6564aef1593fc83533f913d9 | |
parent | d5be08347fb7ff758572775ec93247a3ca886004 (diff) | |
download | rails-3dfcae6afa24b641bd838b9044c5ce9aa2a1a6db.tar.gz rails-3dfcae6afa24b641bd838b9044c5ce9aa2a1a6db.tar.bz2 rails-3dfcae6afa24b641bd838b9044c5ce9aa2a1a6db.zip |
defined? should actually work in current implementation
So this trick is not needed to be documented anymore.
-rw-r--r-- | actionview/lib/action_view/base.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/actionview/lib/action_view/base.rb b/actionview/lib/action_view/base.rb index 900f96255e..86c55ffb51 100644 --- a/actionview/lib/action_view/base.rb +++ b/actionview/lib/action_view/base.rb @@ -66,15 +66,6 @@ module ActionView #:nodoc: # Headline: <%= headline %> # First name: <%= person.first_name %> # - # If you need to find out whether a certain local variable has been assigned a value in a particular render call, - # you need to use the following pattern: - # - # <% if local_assigns.has_key? :headline %> - # Headline: <%= headline %> - # <% end %> - # - # Testing using <tt>defined? headline</tt> will not work. This is an implementation restriction. - # # === Template caching # # By default, Rails will compile each template to a method in order to render it. When you alter a template, |