Class: HelpEngine::HelpPage
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- HelpEngine::HelpPage
- Extended by:
- FriendlyId
- Defined in:
- app/models/help_engine/help_page.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.markdown_parser ⇒ Object
17 18 19 |
# File 'app/models/help_engine/help_page.rb', line 17 def self.markdown_parser @markdown_parser ||= GitHub::Markdown end |
Instance Method Details
#markdown ⇒ Object
21 22 23 |
# File 'app/models/help_engine/help_page.rb', line 21 def markdown self.class.markdown_parser end |
#to_html ⇒ Object
13 14 15 |
# File 'app/models/help_engine/help_page.rb', line 13 def to_html markdown.render content end |