Sha256: 28989de1e173c8fdbce7bea79d44b329780c01f903c0cdff87cbc3bfd9adb096
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
module Panda module CMS class Redirect < ApplicationRecord belongs_to :origin_page, class_name: "Panda::CMS::Page", foreign_key: :origin_panda_cms_page_id, optional: true belongs_to :destination_page, class_name: "Panda::CMS::Page", foreign_key: :destination_panda_cms_page_id, optional: true validates :status_code, presence: true validates :visits, presence: true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
panda-cms-0.7.3 | app/models/panda/cms/redirect.rb |
panda-cms-0.7.2 | app/models/panda/cms/redirect.rb |