pboksz/diamond-clinic

View on GitHub
app/models/doctor.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Doctor < ActiveRecord::Base
  default_scope -> { order(order: :asc) }

  validates :order, numericality: { only_integer: true }
  validates :name_pl, :name_en, :specialty_pl, :specialty_en, :biography_pl, :biography_en, presence: true

  translation_accessor :name, :specialty, :biography
end