b865a60bea
- Ticket in user/admin sides ok (respond tested) - Fix seeds - Fix models - Fix all migrations - Add client_... controllers (bills/tickets)
14 lines
346 B
Ruby
14 lines
346 B
Ruby
class Admin < ActiveRecord::Base
|
|
# Include default devise modules. Others available are:
|
|
# :confirmable, :lockable, :timeoutable and :omniauthable
|
|
devise :database_authenticatable,
|
|
#:registerable,
|
|
#:recoverable,
|
|
:rememberable#,
|
|
#:trackable,
|
|
#:validatable
|
|
|
|
has_many :tickets, as: :creator
|
|
|
|
end
|