Sha256: 6ba57b2255c0e1cf95d5eec22fabb043eaa6161d70fd686fd36b9316d23b8d6a
Contents?: true
Size: 418 Bytes
Versions: 17
Compression:
Stored size: 418 Bytes
Contents
module CmPageBuilder module Rails module HasCmContent extend ActiveSupport::Concern included do has_one :page, as: :container, dependent: :destroy, class_name:"CmPageBuilder::Rails::Page" has_many :page_components, through: :page delegate :save_content, to: :page after_find do self.create_page! unless self.page end end end end end
Version data entries
17 entries across 17 versions & 2 rubygems