Methods

Class Index [+]

Quicksearch

ActionView::TestCase::Behavior::Locals

Attributes

locals[RW]

Public Instance Methods

render(options = {}, local_assigns = {}) click to toggle source
     # File lib/action_view/test_case.rb, line 158
158:         def render(options = {}, local_assigns = {})
159:           case options
160:           when Hash
161:             if block_given?
162:               locals[options[:layout]] = options[:locals]
163:             elsif options.key?(:partial)
164:               locals[options[:partial]] = options[:locals]
165:             end
166:           else
167:             locals[options] = local_assigns
168:           end
169: 
170:           super
171:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.