Sha256: 9375566c0d3cfd079628bd1db1753bfca070b6bca0c1437482cf96309c7f545e

Contents?: true

Size: 368 Bytes

Versions: 51

Compression:

Stored size: 368 Bytes

Contents

# encoding: utf-8
class Article
  include Mongoid::Document
  # jinda begin
  include Mongoid::Timestamps
  field :title, :type => String
  field :text, :type => String
  belongs_to :user, :class_name => "User"
  has_many :comments
  validates :title, :text, :user_id, presence: true
  field :body, :type => String
  field :keywords, :type => String
  # jinda end
end

Version data entries

51 entries across 48 versions & 4 rubygems

Version Path
jinda-0.8.0 test/dummy/app/models/article.rb
jinda-0.8.0 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.7.4 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.7.4 test/dummy/app/models/article.rb
jinda-0.7.7.3 test/dummy/app/models/article.rb
jinda-0.7.7.3 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.7.2 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.7.1 lib/generators/jinda/templates/app/models/article.rb
jinda_mind-1.0.0 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.7 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.6 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.5.5 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.5.4 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.5.3 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.5.2 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.5.0 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.3 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.2 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.1 lib/generators/jinda/templates/app/models/article.rb
jinda-0.7.0.4 lib/generators/jinda/templates/app/models/article.rb