Method: SectionRenderer#content_render_hash
- Defined in:
- app/presentation/section_renderer.rb
#content_render_hash ⇒ Object
A hash suitable to be passed to Rails render() to render the inner content portion of the section. Called by the section_display partial, nobody else should need to call this. You may be looking for ResolveHelper#render_section instead.
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
# File 'app/presentation/section_renderer.rb', line 362 def content_render_hash if custom_partial? {:partial => @options[:partial].to_s, :object => responses_list, :locals => @options[:partial_locals].merge( {:responses_by_type => responses, :responses => responses_list, :umlaut_request => request, :renderer => self})} else {:partial => @options[:item_partial].to_s, :collection => responses_list, :locals => @options[:partial_locals].clone} end end |