Turned on user registration

This commit is contained in:
George Vinogradov 2011-10-26 13:31:58 +04:00
parent 0006a7b50c
commit f2ac7b3cc9
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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