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

Version Path
tb_cms-1.3.6 app/models/spud_snippet.rb
tb_cms-1.3.5 app/models/spud_snippet.rb
tb_cms-1.3.3 app/models/spud_snippet.rb
tb_cms-1.3.2 app/models/spud_snippet.rb
tb_cms-1.3.1 app/models/spud_snippet.rb