Sha256: f7054e49e2d07df78ecbd26a9359dedc6696218f9b3c440c04197db1dcef63e6

Contents?: true

Size: 172 Bytes

Versions: 2

Compression:

Stored size: 172 Bytes

Contents

module Theblog
  class Post < ContentNode
    belongs_to :category, class_name: "Theblog::Category", foreign_key: :parent_node_id
    validates_presence_of :body
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
theblog-0.0.1.1 app/models/theblog/post.rb
theblog-0.0.1 app/models/theblog/post.rb