Sha256: 8aedddbdfdd5735d27b50b25aaa9e7fb853b559c4676d65346d2bd3788578be0
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 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: 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enjoy_cms-0.3.0.4 | lib/enjoy/models/mongoid/seo.rb |
enjoy_cms-0.3.0.3 | lib/enjoy/models/mongoid/seo.rb |
enjoy_cms-0.3.0.2 | lib/enjoy/models/mongoid/seo.rb |