adding tests and some fixes in ability

This commit is contained in:
Stella Rouzi 2014-07-23 18:05:25 +03:00
parent 3f8a648f17
commit 439d632251
4 changed files with 113 additions and 36 deletions

View file

@ -54,7 +54,6 @@ class User < ActiveRecord::Base
def setup_role
is_admin = true if User.count == 0
roles << Role.where(name: 'participant') if roles.empty?
end
def self.prepare(params)