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

Version Path
recruiter-1.1.10 app/models/recruiter/article.rb
recruiter-1.1.9 app/models/recruiter/article.rb
recruiter-1.1.8 app/models/recruiter/article.rb
recruiter-1.1.7 app/models/recruiter/article.rb
recruiter-1.1.6 app/models/recruiter/article.rb
recruiter-1.1.5 app/models/recruiter/article.rb
recruiter-1.1.4 app/models/recruiter/article.rb
recruiter-1.1.3 app/models/recruiter/article.rb
recruiter-1.1.2 app/models/recruiter/article.rb
recruiter-1.1.1 app/models/recruiter/article.rb
recruiter-1.1.0 app/models/recruiter/article.rb
recruiter-1.0.0 app/models/recruiter/article.rb
recruiter-0.1.5 app/models/recruiter/article.rb
recruiter-0.1.4 app/models/recruiter/article.rb
recruiter-0.1.3 app/models/recruiter/article.rb
recruiter-0.1.2 app/models/recruiter/article.rb
recruiter-0.1.1 app/models/recruiter/article.rb
recruiter-0.1.0 app/models/recruiter/article.rb