app/models/user.rb in tawork-0.0.8 vs app/models/user.rb in tawork-0.0.9

- old
+ new

@@ -9,9 +9,11 @@ devise :omniauthable, omniauth_providers: [:google_apps] has_many :tickets, foreign_key: 'creator_id' has_many :projects, foreign_key: 'creator_id', class_name: "Project" + validates :name, presence: true + def self.find_for_open_id(access_token, signed_in_resource = nil) data = access_token.info name = data["name"] if name.blank?