2015-09-22 10:15:12 +02:00
|
|
|
class Gestionnaire < ActiveRecord::Base
|
|
|
|
# Include default devise modules. Others available are:
|
|
|
|
# :confirmable, :lockable, :timeoutable and :omniauthable
|
|
|
|
devise :database_authenticatable, :registerable,
|
|
|
|
:recoverable, :rememberable, :trackable, :validatable
|
2015-11-10 10:23:15 +01:00
|
|
|
|
|
|
|
belongs_to :administrateur
|
2015-11-16 18:08:19 +01:00
|
|
|
|
|
|
|
has_many :procedures, through: :administrateur
|
|
|
|
has_many :dossiers, through: :procedures
|
2015-09-22 10:15:12 +02:00
|
|
|
end
|