Class: Manuscript::Page
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Manuscript::Page
- Defined in:
- lib/manuscript/page.rb
Instance Method Summary collapse
Instance Method Details
#to_html ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/manuscript/page.rb', line 11 def to_html if template template.render({'contents' => RDiscount.new(contents).to_html}) else RDiscount.new(contents).to_html end end |