Sha256: eb41760d43718cff885d943d96fbb17171996d5fdcf1d48f0c081c372e747884

Contents?: true

Size: 251 Bytes

Versions: 16

Compression:

Stored size: 251 Bytes

Contents

class PagePart < ActiveRecord::Base

  belongs_to :page

  validates_presence_of :title

  has_friendly_id :title, :use_slug => true, :strip_diacritics => true

  def content
    self.body
  end

  def content=(value)
    self.body = value
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
refinerycms-0.9.5.29 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.28 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.27 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.26 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.25 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.24 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.23 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.22 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.21 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.20 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.19 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.18 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.17 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.16 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.15 vendor/plugins/pages/app/models/page_part.rb
refinerycms-0.9.5.14 vendor/plugins/pages/app/models/page_part.rb