SHIMADA Koji
null+****@clear*****
Mon Sep 10 15:37:17 JST 2012
SHIMADA Koji 2012-09-10 15:37:17 +0900 (Mon, 10 Sep 2012) New Revision: b9497ceecf6ba168d0d1c29a9dda5fa64be0e7f8 https://github.com/logaling/logaling-server/commit/b9497ceecf6ba168d0d1c29a9dda5fa64be0e7f8 Merged c5d082c: Merge pull request #13 from logaling/enable-creating-user-glossary Log: Add validation for UserGlossary Modified files: app/models/user_glossary.rb Modified: app/models/user_glossary.rb (+2 -0) =================================================================== --- app/models/user_glossary.rb 2012-09-10 15:34:17 +0900 (da83df6) +++ app/models/user_glossary.rb 2012-09-10 15:37:17 +0900 (c431634) @@ -3,7 +3,9 @@ class UserGlossary < ActiveRecord::Base belongs_to :user + validates_presence_of :name, :source_language, :target_language #TODO: validation + after_create :create_personal_project! private -------------- next part -------------- An HTML attachment was scrubbed... Télécharger