Mongoid ã¯ãåºæ¬çãªããªãã¼ã·ã§ã³ãæä¾ããããã« ActiveModel::Validations ãå«ãã§ãããããã«é¢é£ã¨ä¸ææ§ããªãã¼ã·ã§ã³ã«æãå ãã¦ãã¾ãã ããã«è©³ããæ å ±ã¯ãActiveModel::Validations ã®ããã¥ã¡ã³ããåç §ãã¦ãã ããã å ¨ã¦ã®ããªãã¼ã·ã§ã³ã«ã¯ä»¥ä¸ã®å ±éã®ãªãã·ã§ã³ãããã¾ãã :allow_nil ã¢ããªãã¥ã¼ãã nil ã許ããã©ãããæå®ãã¾ãã :if ä¸ããããå¤ã true ã¨è©ä¾¡ãããå ´åã ãå®è¡ããã¾ãã :on æå®ããã :create ã :update ã®æã ãå®è¡ããã¾ãã :unless ä¸ããããå¤ã false ã¨è©ä¾¡ãããå ´åã ãå®è¡ããã¾ãã ãã¼ã«å¤ã®ãã£ã¼ã«ããåãå ¥ãå¯è½ï¼ããã©ã«ã: trueï¼ãã©ãããæ¤è¨¼ãã¾ãï¼ validates_acceptance_of :terms ãª
{{#tags}}- {{label}}
{{/tags}}