Class: PagesCms::MarkdownText

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
MarkdownRenderer
Defined in:
app/models/pages_cms/markdown_text.rb

Instance Method Summary collapse

Methods included from MarkdownRenderer

#markdown

Instance Method Details

#content=(value) ⇒ Object



7
8
9
10
11
12
# File 'app/models/pages_cms/markdown_text.rb', line 7

def content=(value)
  old = value
  new = markdown(value)
  self[:content_rendered] = new
  self[:content] = old
end