Sha256: e3172f5e4529ffd717d73b07fe50927a80c0edd0ef28b65b3e179be5a104364b

Contents?: true

Size: 161 Bytes

Versions: 6

Compression:

Stored size: 161 Bytes

Contents

class Note < ActiveRecord::Base
  belongs_to :notable, polymorphic: true

  validates :content, presence: true

  default_scope { order('created_at DESC') }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
udongo-1.0.4 app/models/note.rb
udongo-1.0.3 app/models/note.rb
udongo-1.0.2 app/models/note.rb
udongo-1.0.1 app/models/note.rb
udongo-1.0.0 app/models/note.rb
udongo-0.1.0 app/models/note.rb