Skip to content

Commit

Permalink
Add RDoc about local_assigns
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
maurogeorge committed Jun 13, 2014
1 parent 24bcfed commit 9999dc9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions actionview/lib/action_view/template.rb
Expand Up @@ -252,6 +252,13 @@ def compile!(view) #:nodoc:
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.
#
Expand Down

0 comments on commit 9999dc9

Please sign in to comment.