app/models/superuser.rb in fullstack-admin-0.2.1 vs app/models/superuser.rb in fullstack-admin-0.2.2
- old
+ new
@@ -1,12 +1,6 @@
class Superuser < ActiveRecord::Base
authenticates_with_sorcery!
-
- attr_accessible :email, :password, :password_confirmation
-
- validates_confirmation_of :password
- validates_presence_of :password, :on => :create
- validates_presence_of :email
- validates_uniqueness_of :email
- field :email
- field :password
-end
\ No newline at end of file
+ def has_role?(r)
+ true
+ end
+end