Sha256: df6ca0243b5661e263f31e48b50a6632d215c2338b90046dce7d479bfeae9e8b
Contents?: true
Size: 345 Bytes
Versions: 29
Compression:
Stored size: 345 Bytes
Contents
# frozen_string_literal: true class Page include Mongoid::Document embedded_in :quiz embeds_many :page_questions embedded_in :book, touch: true embeds_many :notes field :content, :type => String after_initialize do if self[:content] self[:text] = self[:content] self.remove_attribute(:content) end end end
Version data entries
29 entries across 29 versions & 1 rubygems