Sha256: 2905726804a794ef6eeba3990e75ec40c56348b873d37cdb3eebfdd985533a67

Contents?: true

Size: 625 Bytes

Versions: 14

Compression:

Stored size: 625 Bytes

Contents

module Ants
  module Meta
    extend ActiveSupport::Concern
    included do
      field :_meta_title,          default: ''
      field :_meta_description,    default: ''
      field :_meta_keywords,       default: ''
      field :_opengraph_image_url, default: ''

      # these helpers to be used for meta_tags helper,
      # override them to add custom logic
      def meta_title
        _meta_title
      end

      def meta_description
        _meta_description
      end

      def meta_keywords
        _meta_keywords
      end

      def opengraph_image_url
        _opengraph_image_url
      end
    end
  end
end


Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ants-0.3.14 lib/concerns/ants/meta.rb
ants-0.3.13 lib/concerns/ants/meta.rb
ants-0.3.12 lib/concerns/ants/meta.rb
ants-0.3.11 lib/concerns/ants/meta.rb
ants-0.3.10 lib/concerns/ants/meta.rb
ants-0.3.9 lib/concerns/ants/meta.rb
ants-0.3.5 lib/concerns/ants/meta.rb
ants-0.3.4 lib/concerns/ants/meta.rb
ants-0.3.3 lib/concerns/ants/meta.rb
ants-0.3.2 lib/concerns/ants/meta.rb
ants-0.3.1 lib/concerns/ants/meta.rb
ants-0.3.0 lib/concerns/ants/meta.rb
ants-0.2.8 lib/concerns/ants/meta.rb
ants-0.2.7 lib/concerns/ants/meta.rb