Created
May 11, 2012 17:17
-
-
Save binaryphile/2661098 to your computer and use it in GitHub Desktop.
Deface override to lengthen names on Spree product index page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Correction: | |
Deface::Override.new(:virtual_path => 'spree/shared/_products', | |
:name => 'lengthen_product_name', | |
:replace => 'code[erb-loud]:contains("link_to truncate(product.name, :length => 50)")', | |
:text => '<%= link_to product.name, product, :class => "info", :itemprop => "name", :title => product.name %>' | |
) |
Changed to incorporate your fix, GeekOnCoffee. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Correction:
Deface::Override.new(:virtual_path => 'spree/shared/_products',
:name => 'lengthen_product_name',
:replace => 'code[erb-loud]:contains("link_to truncate(product.name, :length => 50)")',
:text => '<%= link_to product.name, product, :class => "info", :itemprop => "name", :title => product.name %>'
)