Skip to content

Commit

Permalink
Single responsibility for meta!
Browse files Browse the repository at this point in the history
Fixes #4095
  • Loading branch information
pusewicz authored and radar committed Jan 20, 2014
1 parent 2d263a5 commit eeff0dd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/app/helpers/spree/base_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def variant_options(v, options={})
v.options_text
end

def meta_data_tags
def meta_data
object = instance_variable_get('@'+controller_name.singularize)
meta = {}

Expand All @@ -51,8 +51,11 @@ def meta_data_tags
keywords: Spree::Config[:default_meta_keywords],
description: Spree::Config[:default_meta_description]
})
meta
end

meta.map do |name, content|
def meta_data_tags
meta_data.map do |name, content|
tag('meta', name: name, content: content)
end.join("\n")
end
Expand Down

0 comments on commit eeff0dd

Please sign in to comment.