Module: ApplicationHelper

Defined in:
app/helpers/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#about_urlObject


7
8
9
# File 'app/helpers/application_helper.rb', line 7

def about_url
  ENV['APP_ABOUT_URL']
end

#contact_urlObject


11
12
13
# File 'app/helpers/application_helper.rb', line 11

def contact_url
  ENV['APP_CONTACT_URL']
end

#markdown(text) ⇒ Object


2
3
4
5
# File 'app/helpers/application_helper.rb', line 2

def markdown(text)
  @markdown ||= Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, tables: true)
  @markdown.render(text).html_safe if text
end