mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
9 lines
145 B
Ruby
9 lines
145 B
Ruby
require 'rdiscount'
|
|
|
|
class Page < ActiveRecord::Base
|
|
def html
|
|
markdown = Markdown.new(self.content, :smart)
|
|
markdown.to_html
|
|
end
|
|
end
|