test/dummy/app/models/user.rb in watarase-0.0.3 vs test/dummy/app/models/user.rb in watarase-0.0.4
- old
+ new
@@ -1,4 +1,5 @@
class User < ActiveRecord::Base
self.primary_key = :username
acts_as_image_handler
+ validates_presence_of :username
end