aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2014-08-07 01:57:55 +0900
committerAkira Matsuda <ronnie@dio.jp>2014-08-07 01:59:58 +0900
commit3dfcae6afa24b641bd838b9044c5ce9aa2a1a6db (patch)
tree48c8606eee309b9e6564aef1593fc83533f913d9 /actionview/lib
parentd5be08347fb7ff758572775ec93247a3ca886004 (diff)
downloadrails-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.
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/base.rb9
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,