Sha256: 44819d86029d5d1fa1b0459a4f17284e345859b16fc8748fef81803e2d0fd0dc
Contents?: true
Size: 310 Bytes
Versions: 1
Compression:
Stored size: 310 Bytes
Contents
module Storytime class Page < ActiveRecord::Base include Storytime::Concerns::HasVersions extend FriendlyId belongs_to :user friendly_id :title, use: [:history] validates_presence_of :title, :draft_content def should_generate_new_friendly_id? title_changed? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
storytime-0.0.1 | app/models/storytime/page.rb |