Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Taxon name become title_tag if taxon doesn't have a title_tag

  • Loading branch information...
commit d3f0569bea0f02cb82150cf7d9a3cac64e17c541 1 parent e67861a
@kennyadsl authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/spree_core_seo.rb
View
8 lib/spree_core_seo.rb
@@ -51,9 +51,11 @@ def title
TaxonsController.class_eval do
#before_filter :find_seo_title, :only => :show
def title
- if defined?(@taxon.title_tag)
- @title = @taxon.title_tag if @taxon.title_tag.present?
- end
+ if defined?(@taxon.title_tag) && @taxon.title_tag.present?
+ @title = @taxon.title_tag
+ else
+ @title = @taxon.name
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.