Sha256: 5bf591150199e9879fef01cf99e674c955df6a8bf289cb78d29fb4d62f360ea4

Contents?: true

Size: 543 Bytes

Versions: 53

Compression:

Stored size: 543 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, :recoverable, :rememberable, :validatable

      validates :email, uniqueness: true

      private

      # 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

53 entries across 53 versions & 2 rubygems

Version Path
decidim-system-0.9.2 app/models/decidim/system/admin.rb
decidim-system-0.9.1 app/models/decidim/system/admin.rb
decidim-system-0.9.0 app/models/decidim/system/admin.rb
decidim-system-0.8.4 app/models/decidim/system/admin.rb
decidim-system-0.8.3 app/models/decidim/system/admin.rb
decidim-system-0.8.2 app/models/decidim/system/admin.rb
decidim-system-0.8.1 app/models/decidim/system/admin.rb
decidim-system-0.8.0 app/models/decidim/system/admin.rb
decidim-system-0.7.4 app/models/decidim/system/admin.rb
decidim-system-0.7.3 app/models/decidim/system/admin.rb
decidim-system-0.7.2 app/models/decidim/system/admin.rb
decidim-system-0.7.1 app/models/decidim/system/admin.rb
decidim-system-0.7.0 app/models/decidim/system/admin.rb
decidim-system-0.6.8 app/models/decidim/system/admin.rb
decidim-0.6.8 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.6.7 app/models/decidim/system/admin.rb
decidim-0.6.7 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.6.6 app/models/decidim/system/admin.rb
decidim-0.6.6 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.6.5 app/models/decidim/system/admin.rb