Sha256: 22cce9be7e5f49a0470852c480afd63e316bb9323aaddd3cf5e63c17e7eff880
Contents?: true
Size: 511 Bytes
Versions: 10
Compression:
Stored size: 511 Bytes
Contents
Spree::BaseHelper.class_eval do def markdown_helper content_tag('em', :class => 'small') do [ " ", t('essentials.parsed_with'), link_to("Markdown", "http://daringfireball.net/projects/markdown/basics", :onclick => 'window.open(this.href); return false') ].join(" ").html_safe end end def method_missing(method, *args, &block) return super unless method.to_s =~ /_path$/ "/" + method.to_s.sub(/_path$/, '').gsub('_', '-') end end
Version data entries
10 entries across 10 versions & 1 rubygems