Sha256: c5ac8cf70e22e29a08d52da022276ebf04aaebdec938aa169a48896cc07ca658

Contents?: true

Size: 993 Bytes

Versions: 10

Compression:

Stored size: 993 Bytes

Contents

module RocketCMS
  module Models
    module Mongoid
      module Seo
        extend ActiveSupport::Concern
        if RocketCMS.shrine?
          include ImageUploader::Attachment(:og_image)
        elsif RocketCMS.paperclip?
          include ::Mongoid::Paperclip
        end
        included do
          field :name, type: String, localize: RocketCMS.config.localize
          field :h1, type: String, localize: RocketCMS.config.localize

          field :title, type: String, localize: RocketCMS.config.localize
          field :keywords, type: String, localize: RocketCMS.config.localize
          field :description, type: String, localize: RocketCMS.config.localize
          field :robots, type: String, localize: RocketCMS.config.localize

          field :og_title, type: String, localize: RocketCMS.config.localize

          if RocketCMS.paperclip?
            has_mongoid_attached_file :og_image, styles: {thumb: "800x600>"}
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rocket_cms-0.37.1 lib/rocket_cms/models/mongoid/seo.rb
rocket_cms-0.37.0 lib/rocket_cms/models/mongoid/seo.rb
rocket_cms-0.36.0 lib/rocket_cms/models/mongoid/seo.rb
rocket_cms-0.35.0 lib/rocket_cms/models/mongoid/seo.rb
rocket_cms-0.34.0 lib/rocket_cms/models/mongoid/seo.rb
rocket_cms-0.33.1 lib/rocket_cms/models/mongoid/seo.rb
rocket_cms-0.33.0 lib/rocket_cms/models/mongoid/seo.rb
rocket_cms-0.32.0 lib/rocket_cms/models/mongoid/seo.rb
rocket_cms-0.31.1 lib/rocket_cms/models/mongoid/seo.rb
rocket_cms-0.31.0 lib/rocket_cms/models/mongoid/seo.rb