app/models/user.rb in wheels-0.0.41 vs app/models/user.rb in wheels-0.0.42
- old
+ new
@@ -4,9 +4,11 @@
has_many :blogs, :dependent => :destroy
has_one :profile, :dependent => :destroy
has_many :galleries, :dependent => :destroy
has_many :access_control_entries, :dependent=>:destroy
+ validates :email, :presence => true
+
def self.nobody
User.new(:role=>Role.nobody)
end
def self.root