Sha256: 797b0f167d1f8c31bee2d2c9837b0089e6b6c4407c3a2b17b4487a82d93c1583
Contents?: true
Size: 643 Bytes
Versions: 4
Compression:
Stored size: 643 Bytes
Contents
module Seoable extend ActiveSupport::Concern include Mongoid::Paperclip included do field :name, type: String field :h1, type: String field :title, type: String field :keywords, type: String field :description, type: String field :robots, type: String field :og_title, type: String has_mongoid_attached_file :og_image, styles: {thumb: "800x600>"} end def page_title title.blank? ? name : title end def get_og_title og_title.blank? ? name : og_title end def self.admin RocketCMS.seo_config end # deprecated def self.seo_config RocketCMS.seo_config end end
Version data entries
4 entries across 4 versions & 1 rubygems