Class: Seo

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
RocketCMS::Models::Seo
Defined in:
app/models/seo.rb,
app/models/seo.rb

Class Method Summary collapse

Methods included from RocketCMS::SeoHelpers

#get_og_title, #page_title

Class Method Details

.separate_table?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/models/seo.rb', line 11

def self.separate_table?
  (RocketCMS.mongoid? && RocketCMS.config.separate_seo_table) || (RocketCMS.active_record? && Seo.table_exists?)
end