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

Version Path
decidim-system-0.24.3 app/models/decidim/system/admin.rb
decidim-system-0.23.6 app/models/decidim/system/admin.rb
decidim-system-0.24.2 app/models/decidim/system/admin.rb
decidim-system-0.23.5 app/models/decidim/system/admin.rb
decidim-system-0.24.1 app/models/decidim/system/admin.rb
decidim-system-0.24.0 app/models/decidim/system/admin.rb
decidim-system-0.24.0.rc2 app/models/decidim/system/admin.rb
decidim-system-0.23.4 app/models/decidim/system/admin.rb
decidim-system-0.24.0.rc1 app/models/decidim/system/admin.rb
decidim-system-0.23.3 app/models/decidim/system/admin.rb
decidim-system-0.23.2 app/models/decidim/system/admin.rb
decidim-system-0.23.1 app/models/decidim/system/admin.rb
decidim-system-0.23.1.rc1 app/models/decidim/system/admin.rb
decidim-system-0.23.0 app/models/decidim/system/admin.rb
decidim-system-0.22.0 app/models/decidim/system/admin.rb
decidim-system-0.21.0 app/models/decidim/system/admin.rb
decidim-system-0.20.1 app/models/decidim/system/admin.rb
decidim-system-0.20.0 app/models/decidim/system/admin.rb
decidim-system-0.19.1 app/models/decidim/system/admin.rb
decidim-system-0.18.1 app/models/decidim/system/admin.rb