Class: ActiveAdminAddons::MarkdownBuilder

Inherits:
CustomBuilder show all
Defined in:
lib/activeadmin_addons/addons/markdown_builder.rb

Instance Attribute Summary

Attributes inherited from CustomBuilder

#args, #block, #context, #model

Instance Method Summary collapse

Methods inherited from CustomBuilder

builder_method_name, create_view_methods, #initialize

Constructor Details

This class inherits a constructor from ActiveAdminAddons::CustomBuilder

Instance Method Details

#renderObject



5
6
7
8
9
# File 'lib/activeadmin_addons/addons/markdown_builder.rb', line 5

def render
  return if data.blank?

  Redcarpet::Markdown.new(renderer, extensions).render(@data).html_safe
end