From 9999dc947fa45fcc2ca7d27dfcf04ebd078acda1 Mon Sep 17 00:00:00 2001 From: Mauro George Date: Fri, 13 Jun 2014 19:52:24 -0300 Subject: Add RDoc about local_assigns [ci skip] --- actionview/lib/action_view/template.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actionview/lib/action_view/template.rb') diff --git a/actionview/lib/action_view/template.rb b/actionview/lib/action_view/template.rb index 9d39d02a37..4cfd11fa20 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. # -- cgit v1.2.3