Sha256: 6e66052a4482d5175f1e1e9dd1a9db8adf49c6d13871fceb2a71476d839ba830

Contents?: true

Size: 276 Bytes

Versions: 20

Compression:

Stored size: 276 Bytes

Contents

# encoding: utf-8
class Comment
  include Mongoid::Document
  # jinda begin
  include Mongoid::Timestamps
  field :body, :type => String
  belongs_to :article
  belongs_to :user, :class_name => "User"
  validates :body, :user_id, :article_id, presence: true
  # jinda end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
jinda-0.6.1 lib/generators/jinda/templates/app/models/comment.rb
jinda_engine-0.6.0 lib/generators/jinda_engine/templates/app/models/comment.rb
jinda-0.6.0 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.5.9 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.5.8 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.5.7 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.5.6 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.5.5 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.5.4 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.5.3 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.5.2 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.5.1 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.5.0 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.4.9 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.4.8 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.4.7 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.4.6 lib/generators/jinda/templates/app/models/comment.rb
jinda-5-0.4.5 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.4.5 lib/generators/jinda/templates/app/models/comment.rb
jinda-0.4.4 lib/generators/jinda/templates/app/models/comment.rb