Sha256: a5e37871dcd4de26e508327e6aab47df00787c71fde9fdc999082eba69dd9178

Contents?: true

Size: 336 Bytes

Versions: 9

Compression:

Stored size: 336 Bytes

Contents

class RailsExecution::TaskReview < RailsExecution::AppModel

  belongs_to :task

  validates :task, presence: true
  validates :status, presence: true

  enum status: {
    reviewing: 'reviewing',
    approved: 'approved',
    rejected: 'rejected',
  }, _prefix: :is

  scope :checked, -> { where(status: [:approved, :rejected]) }

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_execution-0.1.12 app/models/rails_execution/task_review.rb
rails_execution-0.1.11 app/models/rails_execution/task_review.rb
rails_execution-0.1.10 app/models/rails_execution/task_review.rb
rails_execution-0.1.9 app/models/rails_execution/task_review.rb
rails_execution-0.1.8 app/models/rails_execution/task_review.rb
rails_execution-0.1.7 app/models/rails_execution/task_review.rb
rails_execution-0.1.5 app/models/rails_execution/task_review.rb
rails_execution-0.1.4 app/models/rails_execution/task_review.rb
rails_execution-0.1.2 app/models/rails_execution/task_review.rb