smc/grandham

View on GitHub
app/models/edit.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Edit < ApplicationRecord
  belongs_to :editable, polymorphic: true
  belongs_to :language

  scope :not_reviewed, -> { where(state: "open") }
  scope :approved, -> { where(state: "approved") }

  belongs_to :book
  belongs_to :user
end