Sha256: c61e04980eca0eab095bfc3107d2a28261647ef2314de7785cd3b0665a4101e8
Contents?: true
Size: 1.11 KB
Versions: 14
Compression:
Stored size: 1.11 KB
Contents
module Enjoy module Models module Mongoid module Seo extend ActiveSupport::Concern include Enjoy::MongoidPaperclip included do if defined?(RailsAdminComments) include RailsAdminComments::Commentable end 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: lambda { |attachment| attachment.instance.og_image_styles }, content_type: { content_type: ["image/jpg", "image/jpeg", "image/png"] } ) end def og_image_styles {thumb: "800x600>"} end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems