Sha256: 949e22d73eaaad280ef2ebf6cf8163c4aa904fb28c28e54c7315ae21d1b14025

Contents?: true

Size: 942 Bytes

Versions: 1

Compression:

Stored size: 942 Bytes

Contents

module Hancock::Seo
  module Models
    module Mongoid
      module Seo
        extend ActiveSupport::Concern
        included do
          index({seoable_id: 1, seoable_type: 1}, {background: true})
          index({enabled: 1},                     {background: true})


          # field :name, type: String, localize: Hancock::Seo.config.localize
          field :h1, type: String, localize: Hancock::Seo.config.localize

          field :title, type: String, localize: Hancock::Seo.config.localize
          field :author, type: String, localize: Hancock::Seo.config.localize
          field :keywords, type: String, localize: Hancock::Seo.config.localize
          field :description, type: String, localize: Hancock::Seo.config.localize
          field :robots, type: String, localize: Hancock::Seo.config.localize

          field :og_title, type: String, localize: Hancock::Seo.config.localize
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hancock_cms_seo-1.0.2 lib/hancock/seo/models/mongoid/seo.rb