ActiveRecordã使ã£ã¦ããã¨æã ããã°ã©ã å ã§Modelãªãã¸ã§ã¯ãã®å¤ãå¤æ´ãã¦ãããå¤æ´åã®å¤ã欲ãããªã£ãããããã¨ãããã ãããªã¨ãã¯ActiveModel::Dirtyã®ã¡ã½ããã使ãã¨Modelã®ãªãã¸ã§ã¯ãã«å¤æ´ããã£ãæã«å¤æ´ã®æ å ±ãåå¾åºæ¥ãã # ãã¨ãã°Userã®ã¬ã³ã¼ããä¸åå¼ã£å¼µã£ã¦ã㦠u = User.last => #<User id: 5, age: 19, name: "Kiriko Takemura"> # å¤æ´ããã¦ããªããã¨ã確èªåºæ¥ã u.changes => {} u.changed => [] u.changed? => false # ååãå¤æ´ãã¦ã¿ã u.name = "Caroline Charonplop Kyary Pamyu Pamyu" # ããã¨changesãå¤æ´ãããããããã£ã®å¤æ´åã¨å¤æ´å¾ã®ãã¼ã¿ãåå¾ã§
{{#tags}}- {{label}}
{{/tags}}