Permalink
Browse files

Use custom defaults for model support

  • Loading branch information...
1 parent e7840db commit 0e7b37b9b0be00a9ba9af456967c4f250c1afb12 @mateomurphy committed Mar 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/rails/meta_tags/model_support.rb
@@ -7,7 +7,8 @@ module ModelSupport
extend ActiveSupport::Concern
- DEFAULTS = { :title => :to_s }
+ # defaults specific to model support
+ DEFAULTS = { :title => :to_s, :created => :updated_at }
module ClassMethods
def meta(&block)
@@ -16,7 +17,7 @@ def meta(&block)
if ancestor = meta_ancestor
@data = DataConfig.new(ancestor.to_hash)
else
- @data = DataConfig.new(MetaTags.defaults)
+ @data = DataConfig.new(DEFAULTS)
end
@data.configure_via_block(block)
@@ -34,7 +35,6 @@ def meta_ancestor
def meta_config
@data || meta_ancestor
end
-
end
def meta

0 comments on commit 0e7b37b

Please sign in to comment.