gluster-web-interface/app/models/user.rb

13 lines
416 B
Ruby
Raw Normal View History

2016-08-19 09:03:00 +00:00
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
end
2016-09-23 12:53:19 +00:00
class User::ParameterSanitizer < Devise::ParameterSanitizer
def initialize(*)
super
permit(:sign_up, keys: [:username, :email])
end
end