Sha256: 24e644f2841882eb789e1f64bb042ed3106fed1881eba7f3fc87b4cd696b2c20
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
module ActiveMetadata module ApplicationHelper def markdown(text) Redcarpet.new(text).to_html.html_safe end def stream_partial_path element class_name_downcase = clean_class_name element.class.to_s.downcase "active_metadata/#{class_name_downcase.pluralize}/#{class_name_downcase}" end def clean_class_name name name.split('::').last || nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_metadata-0.6.3 | app/helpers/active_metadata/application_helper.rb |