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(user = nil) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/manuscript/page.rb', line 12 def to_html(user = nil) if template template.render({'current_user' => user, 'contents' => RDiscount.new(contents).to_html}) else RDiscount.new(contents).to_html end end |