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-0.6.5 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.6.4 app/models/decidim/system/admin.rb
decidim-0.6.4 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.6.3 app/models/decidim/system/admin.rb
decidim-0.6.3 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.6.2 app/models/decidim/system/admin.rb
decidim-0.6.2 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.6.1 app/models/decidim/system/admin.rb
decidim-0.6.1 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.6.0 app/models/decidim/system/admin.rb
decidim-0.6.0 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.5.1 app/models/decidim/system/admin.rb
decidim-0.5.1 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.5.0 app/models/decidim/system/admin.rb
decidim-0.5.0 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.4.4 app/models/decidim/system/admin.rb
decidim-0.4.4 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.4.3 app/models/decidim/system/admin.rb
decidim-system-0.4.2 app/models/decidim/system/admin.rb
decidim-system-0.4.1 app/models/decidim/system/admin.rb