You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/app/decorators/application_decorator.rb

14 lines
194 B
Ruby

class ApplicationDecorator < Draper::Decorator
delegate_all
def as_json(*args)
model.as_json(*args)
end
def markdown(text)
MKD_SAFE_RENDERER.render(text).html_safe
end
end