Codeminer42/cm42-central

View on GitHub
app/models/admin_user.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AdminUser < ApplicationRecord
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :authy_authenticatable, :database_authenticatable, :trackable, :validatable

  validates :email, presence: true

  def staff?
    true
  end
end