Sha256: 744a94728eee85e287aea84df5976ca1f75f0b2f93c2ecc5bad3ad5509d391c6
Contents?: true
Size: 246 Bytes
Versions: 18
Compression:
Stored size: 246 Bytes
Contents
module Recruiter class Article < ActiveRecord::Base belongs_to :user validates :title, presence: true validates :user, presence: true validates :body, presence: true scope :published, ->{ where(published: true) } end end
Version data entries
18 entries across 18 versions & 1 rubygems