Class: PagesCms::MarkdownText
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PagesCms::MarkdownText
- Includes:
- MarkdownRenderer
- Defined in:
- app/models/pages_cms/markdown_text.rb
Instance Method Summary collapse
Methods included from MarkdownRenderer
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 |