ActiveRecordã§ã¯ãlock_versionã¨ããã«ã©ã ã追å ããã ãã§æ¥½è¦³çããã¯ãå©ç¨ã§ãã¾ãã ã¬ã³ã¼ãåä½ã§lock_versionãä¿æãã¦ãããããã¬ã³ã¼ãåä½ã§ã®æ´æ°ã競åããå ´åãActiveRecord::StaleObjectErrorä¾å¤ãçºçãã¾ãã åä½ç¢ºèª Rails 4.1 ActiveRecord 4.1 ç®æ¬¡ 楽観çããã¯ã¨ã¯ 楽観çããã¯ï¼ããã¯ãã¼ã¸ã§ã³ï¼ã®å®è£ 楽観çããã¯ã®ä½¿ãæ¹ æ¥½è¦³çããã¯ãç»é¢ããæ±ã 1. 楽観çããã¯ã¨ã¯æ¥½è¦³çããã¯ã¨ã¯ãåºæ¬çã«ã¯å¤æ´ã競åããªãã ããã¨ããç¶æ³ã«åããããã¯ææ³ã§ãã ãã¼ãã«ã«ããã¯ãã¼ã¸ã§ã³ã«ã©ã ãæãããã¬ã³ã¼ããå¤æ´ãããã³ã«ããã¯ãã¼ã¸ã§ã³ãæ´æ°ããæ´æ°ãããã¨ããã¨ãã«ããã¯ãã¼ã¸ã§ã³ãç°ãªã£ã¦ããå ´åã«ã¯ãæ´æ°ã®ç«¶åãçºçããã¨å¤æãã¬ã³ã¼ããæ´æ°ããªãããã«ãã¾ãã Activ
{{#tags}}- {{label}}
{{/tags}}