Sha256: 404cadb845ee05ac3a1b48fc2afe9a6c5f950819e0a62ed8b4f741b351635756

Contents?: true

Size: 229 Bytes

Versions: 4

Compression:

Stored size: 229 Bytes

Contents

# frozen_string_literal: true

module Lcms
  module Engine
    class Page < ActiveRecord::Base
      validates :body, :title, :slug, presence: true

      def full_title
        "UnboundEd - #{title}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lcms-engine-0.1.4 app/models/lcms/engine/page.rb
lcms-engine-0.1.3 app/models/lcms/engine/page.rb
lcms-engine-0.1.2 app/models/lcms/engine/page.rb
lcms-engine-0.1.0 app/models/lcms/engine/page.rb