Turned on user registration
This commit is contained in:
parent
0006a7b50c
commit
f2ac7b3cc9
|
@ -22,7 +22,7 @@ class Role < ActiveRecord::Base
|
|||
|
||||
def save_dump filename = 'config/roles.yml'
|
||||
fn = File.expand_path filename
|
||||
File.open (fn, 'w'){|f| f.puts dump_roles}
|
||||
File.open(fn, 'w'){|f| f.puts dump_roles}
|
||||
return filename
|
||||
end
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ class User < ActiveRecord::Base
|
|||
relationable :as => :object
|
||||
inherit_rights_from :groups
|
||||
|
||||
devise :database_authenticatable, #:registerable, :omniauthable, # :token_authenticatable, :encryptable, :timeoutable
|
||||
devise :database_authenticatable, :registerable, :omniauthable, # :token_authenticatable, :encryptable, :timeoutable
|
||||
:recoverable, :rememberable, :validatable #, :trackable, :confirmable, :lockable
|
||||
|
||||
has_many :authentications, :dependent => :destroy
|
||||
|
|
Loading…
Reference in New Issue