Sha256: f0764d8bb1dd7555fd05cb1568053d3d2a7edf28f77876ddc2a24e7ed2f6a841

Contents?: true

Size: 542 Bytes

Versions: 31

Compression:

Stored size: 542 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

31 entries across 31 versions & 2 rubygems

Version Path
decidim-system-0.1.0 app/models/decidim/system/admin.rb
decidim-0.1.0 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.0.8.1 app/models/decidim/system/admin.rb
decidim-0.0.8.1 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.0.7 app/models/decidim/system/admin.rb
decidim-0.0.7 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.0.6 app/models/decidim/system/admin.rb
decidim-0.0.6 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.0.5 app/models/decidim/system/admin.rb
decidim-0.0.5 decidim-system/app/models/decidim/system/admin.rb
decidim-0.0.4 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.0.3 app/models/decidim/system/admin.rb
decidim-0.0.3 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.0.2 app/models/decidim/system/admin.rb
decidim-0.0.2 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.0.1 app/models/decidim/system/admin.rb
decidim-0.0.1 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.0.1.alpha9 app/models/decidim/system/admin.rb
decidim-0.0.1.alpha9 decidim-system/app/models/decidim/system/admin.rb
decidim-system-0.0.1.alpha8 app/models/decidim/system/admin.rb