Created
November 5, 2013 03:46
-
-
Save braidn/7313566 to your computer and use it in GitHub Desktop.
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
module Extensions | |
module Spree | |
module ProductsController | |
extend ActiveSupport::Concern | |
include do | |
alias_method_chain :accurate_title, :meta_title | |
end | |
def accurate_title_with_meta_title | |
return false if !@product | |
@product.meta_title.present? ? @product.meta_title : accurate_title_without_meta_title | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment