Sha256: d5a580188058674b0ca052a0055b3afec40caf74371490a03a69f5ddce68d1d1

Contents?: true

Size: 185 Bytes

Versions: 6

Compression:

Stored size: 185 Bytes

Contents

module Gaku
  class Note < ActiveRecord::Base
    belongs_to :notable, polymorphic: true, counter_cache: true, required: false

    validates :title, :content, presence: true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gaku_core-0.3.0 app/models/gaku/note.rb
gaku_core-0.3.0.pre.4 app/models/gaku/note.rb
gaku_core-0.3.0.pre.3 app/models/gaku/note.rb
gaku_core-0.3.0.pre.2 app/models/gaku/note.rb
gaku_core-0.3.0.pre.1 app/models/gaku/note.rb
gaku_core-0.3.0.pre.0 app/models/gaku/note.rb