Module: Seoable

Extended by:
ActiveSupport::Concern
Includes:
RocketCMS::Models::Seo, RocketCMS::SeoHelpers
Included in:
RocketCMS::Models::News, RocketCMS::Models::Page
Defined in:
app/models/concerns/seoable.rb

Constant Summary collapse

LOCALIZED_FIELDS =
[:h1, :title, :keywords, :description, :og_title]
FIELDS =
LOCALIZED_FIELDS + [:og_image, :robots]

Class Method Summary collapse

Instance Method Summary collapse

Methods included from RocketCMS::SeoHelpers

#get_og_title, #page_title

Class Method Details

.adminObject



27
28
29
# File 'app/models/concerns/seoable.rb', line 27

def self.admin
  RocketCMS.seo_config
end

Instance Method Details

#og_image_jcrop_optionsObject



31
32
33
# File 'app/models/concerns/seoable.rb', line 31

def og_image_jcrop_options
  {aspectRation: 800.0/600.0}
end