diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-18 17:34:37 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-18 17:34:37 -0200 |
commit | e07eb079bf6911e520edfb8a40677aa26a4987de (patch) | |
tree | 35be3d8e7aada158c9ebde7abb55b83f4cc80f54 /actionview | |
parent | ef4afb65b2d4797ee23d9e4e7a64a13746052d24 (diff) | |
parent | 9999dc947fa45fcc2ca7d27dfcf04ebd078acda1 (diff) | |
download | rails-e07eb079bf6911e520edfb8a40677aa26a4987de.tar.gz rails-e07eb079bf6911e520edfb8a40677aa26a4987de.tar.bz2 rails-e07eb079bf6911e520edfb8a40677aa26a4987de.zip |
Merge pull request #15700 from maurogeorge/guides-local_assigns
Add docs about local_assigns on guides
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/template.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionview/lib/action_view/template.rb b/actionview/lib/action_view/template.rb index 6b61378a1f..465022f714 100644 --- a/actionview/lib/action_view/template.rb +++ b/actionview/lib/action_view/template.rb @@ -252,6 +252,13 @@ module ActionView end end + ## + # :method: local_assigns + # + # Returns a hash with the defined local variables + # + # local_assigns[:full] # => true + # Among other things, this method is responsible for properly setting # the encoding of the compiled template. # |