Class: Thesis::PageContent
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Thesis::PageContent
- Defined in:
- lib/thesis/models/page_content.rb
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/thesis/models/page_content.rb', line 7 def render case self.content_type.to_sym when :html render_html when :text render_plain_text when :image render_image else render_html end end |