Sha256: a37ca277be22fec6927a4ad1357734fa0ead9061e5bf700bd712c92f3150aaed
Contents?: true
Size: 448 Bytes
Versions: 5
Compression:
Stored size: 448 Bytes
Contents
class SpudSnippet < ActiveRecord::Base include CmsDeprecatedMultisite validates :name, presence: true validates :name, uniqueness: true def postprocess_content content end def content_processed=(content) self[:content_processed] = content end def content_processed if self[:content_processed].blank? update_column(:content_processed, postprocess_content) end return self[:content_processed] end end
Version data entries
5 entries across 5 versions & 1 rubygems