Sha256: 26be1f52474478b0da5c6b2fca5f7b710ff1462192668fc06a5e8fdcce2b7610
Contents?: true
Size: 576 Bytes
Versions: 7
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module Decidim module System # Admins are the users in charge of managing a Decidim installation. class Admin < ApplicationRecord devise :database_authenticatable, :validatable, :timeoutable validates :email, uniqueness: true validates :password, password: { email: :email } private # Changes default Devise behaviour to use ActiveJob to send async emails. def send_devise_notification(notification, *) devise_mailer.send(notification, self, *).deliver_later end end end end
Version data entries
7 entries across 7 versions & 1 rubygems