Sha256: abe8508b4f17b7258d9ac93ecb66b2d92026bb45b094c5315e0b419c46032579

Contents?: true

Size: 437 Bytes

Versions: 4

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

require 'devise_invitable'
require_dependency 'eac_users_support'

module EacUsersSupport
  class User < ActiveRecord::Base
    devise :confirmable, :database_authenticatable, :invitable, :recoverable, :registerable,
           :rememberable

    validates :email, presence: true, uniqueness: true

    def current?
      self == self.class.current_user
    end

    def to_s
      email
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eac_users_support-0.11.1 app/models/eac_users_support/user.rb
eac_users_support-0.11.0 app/models/eac_users_support/user.rb
eac_users_support-0.10.1 app/models/eac_users_support/user.rb
eac_users_support-0.10.0 app/models/eac_users_support/user.rb