Specify Devise modules for each type of user

This commit is contained in:
Artur Beljajev 2018-06-19 22:20:52 +03:00
parent 02137b620e
commit c31f507c25
4 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,8 @@ class RegistrantUser < User
ACCEPTED_ISSUER = 'AS Sertifitseerimiskeskus'
attr_accessor :idc_data
devise :database_authenticatable, :trackable, :timeoutable
def ability
@ability ||= Ability.new(self)
end