Class: Mack::Rendering::Partial

Inherits:
Base
  • Object
show all
Defined in:
lib/rendering/classes/partial.rb

Overview

Used when someone calls render(:partial => “latest_news”)

Instance Attribute Summary

Attributes inherited from Base

#options, #view_binder

Instance Method Summary collapse

Methods inherited from Base

#initialize, #params

Constructor Details

This class inherits a constructor from Mack::Rendering::Base

Instance Method Details

#renderObject



6
7
8
# File 'lib/rendering/classes/partial.rb', line 6

def render
  render_file(options[:partial], {:is_partial => true}.merge(options))
end