1234567891011121314151617181920212223242526 |
- class AdminUser < ActiveRecord::Base
-
-
-
- devise :database_authenticatable,
- :recoverable, :rememberable, :trackable, :validatable
-
- attr_accessible :email, :password, :password_confirmation, :remember_me
-
-
-
- devise :database_authenticatable,
- :recoverable, :rememberable, :trackable, :validatable
-
- attr_accessible :email, :password, :password_confirmation, :remember_me
-
- after_create { |admin| admin.send_reset_password_instructions }
- def password_required?
- new_record? ? false : super
- end
- end
|