Sha256: dd379d9aba3296ebb9ee252521b9be8de2fa58f1a7a9a0e9f74ce4ff8a315115
Contents?: true
Size: 590 Bytes
Versions: 41
Compression:
Stored size: 590 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, :rememberable, :validatable, :timeoutable validates :email, uniqueness: true private def timeout_in 1.hour end # Changes default Devise behaviour to use ActiveJob to send async emails. def send_devise_notification(notification, *args) devise_mailer.send(notification, self, *args).deliver_later end end end end
Version data entries
41 entries across 41 versions & 1 rubygems