Sha256: b6c48a9642276e659a7768af20c1603afa3b22aeb0f5dd544f3dfb9d4cc2c4bc
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 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 }, convert_options: lambda { |attachment| attachment.instance.og_image_convert_options }, content_type: { content_type: ["image/jpg", "image/jpeg", "image/png"] } ) end def og_image_styles {thumb: "800x600>"} end def og_image_convert_options {} end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enjoy_cms-0.3.1.1 | lib/enjoy/models/mongoid/seo.rb |
enjoy_cms-0.3.1 | lib/enjoy/models/mongoid/seo.rb |