Class: Tags::ActionMarkdown

Inherits:
Base
  • Object
show all
Includes:
Placeholderable
Defined in:
app/helpers/action_markdown/tag_helper.rb

Instance Method Summary collapse

Instance Method Details

#renderObject



21
22
23
24
25
26
27
# File 'app/helpers/action_markdown/tag_helper.rb', line 21

def render
  options = @options.stringify_keys
  options["value"] = options.fetch("value") { value&.to_markdown }
  add_default_name_and_id(options)

  @template_object.markdown_field_tag("textarea", options["value"], options.except("value"))
end