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

Version Path
spree_essentials-0.2.3 app/helpers/admin/base_helper_decorator.rb
spree_essentials-0.2.2 app/helpers/admin/base_helper_decorator.rb
spree_essentials-0.2.1 app/helpers/admin/base_helper_decorator.rb
spree_essentials-0.2.0 app/helpers/admin/base_helper_decorator.rb
spree_essentials-0.1.4 app/helpers/admin/base_helper_decorator.rb
spree_essentials-0.1.3 app/helpers/admin/base_helper_decorator.rb
spree_essentials-0.1.2 app/helpers/admin/base_helper_decorator.rb
spree_essentials-0.1.1 app/helpers/admin/base_helper_decorator.rb
spree_essentials-0.1.0 app/helpers/admin/base_helper_decorator.rb
spree_essentials-0.1.0.pre app/helpers/admin/base_helper_decorator.rb