Class: Thesis::PageContent

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/thesis/models/page_content.rb

Instance Method Summary collapse

Instance Method Details

#renderObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/thesis/models/page_content.rb', line 7

def render
  case self.content_type.to_sym
  when :html
    render_html
  when :text
    render_text
  else
    render_html
  end
end