Sha256: f1d7728a9505183c019fd6e4226758cccef8fae07a01166fb84b1d772bb43499

Contents?: true

Size: 417 Bytes

Versions: 71

Compression:

Stored size: 417 Bytes

Contents

if RocketCMS.active_record?
  class Seo < ActiveRecord::Base
  end
end

class Seo
  include RocketCMS::Models::Seo
  RocketCMS.apply_patches self
  belongs_to :seoable, polymorphic: true

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

  if respond_to?(:rails_admin)
    rails_admin &RocketCMS.seo_config
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
rocket_cms-0.37.1 app/models/seo.rb
rocket_cms-0.37.0 app/models/seo.rb
rocket_cms-0.36.0 app/models/seo.rb
rocket_cms-0.35.0 app/models/seo.rb
rocket_cms-0.34.0 app/models/seo.rb
rocket_cms-0.33.1 app/models/seo.rb
rocket_cms-0.33.0 app/models/seo.rb
rocket_cms-0.32.0 app/models/seo.rb
rocket_cms-0.31.1 app/models/seo.rb
rocket_cms-0.31.0 app/models/seo.rb
rocket_cms-0.30.0 app/models/seo.rb
rocket_cms-0.29.0 app/models/seo.rb
rocket_cms-0.28.0 app/models/seo.rb
rocket_cms-0.27.8 app/models/seo.rb
rocket_cms-0.27.7 app/models/seo.rb
rocket_cms-0.27.6 app/models/seo.rb
rocket_cms-0.27.5 app/models/seo.rb
rocket_cms-0.27.4 app/models/seo.rb
rocket_cms-0.27.3 app/models/seo.rb
rocket_cms-0.27.2 app/models/seo.rb