Sha256: ab837cdcbebb5f3fb5e94671c853dd8f5dc646d49c13e21e16d77c8fb7590e5a
Contents?: true
Size: 1 KB
Versions: 7
Compression:
Stored size: 1 KB
Contents
module Enjoy module Models module Mongoid module Seo extend ActiveSupport::Concern include Enjoy::MongoidPaperclip included do field :name, type: String, localize: Enjoy.config.localize field :h1, type: String, localize: Enjoy.config.localize field :title, type: String, localize: Enjoy.config.localize field :keywords, type: String, localize: Enjoy.config.localize field :description, type: String, localize: Enjoy.config.localize field :robots, type: String, localize: Enjoy.config.localize field :og_title, type: String, localize: Enjoy.config.localize enjoy_cms_mongoid_attached_file(:og_image, styles: og_image_styles, content_type: { content_type: ["image/jpg", "image/jpeg", "image/png"] } ) end module ClassMethods def og_image_styles {thumb: "800x600>"} end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems