çãããããã«ã¡ã¯ãMUGENUP ã® osada ã§ãã ãããªãã§ããã gem ã®å é¨ãæ¸ãæããã! ã¨æã£ããã¨ã¯ããã¾ãããï¼ globalize ã¨ããgem ããå é¨ã§ has_many :translations, dependent: :destroy ãå®è¡ããã®ã§ããããã®dpendent: :destroyãæ¢ããããã¨ããè¦æããçºçããã gemã®å é¨ã®æåããªã¼ãã©ã¤ãããæ¹æ³ã®ãç´¹ä»ã§ãã æ³å®ããèªè ã¯ãruby ã使ãå§ããã°ããã§ããªã¼ãã³ã¯ã©ã¹ãã¡ã¿ããã°ã©ãã³ã°ã使ã£ããã¨ããªã人ã§ãã æ¦è¦ dpendent: :destroyãæ¢ããæ¹æ³ã¨ãã¦ãä¸è¨ã®æ¹æ³ãç´¹ä»ãã¾ãã ãªã¼ãã³ã¯ã©ã¹ã使ã£ãããããå½ã¦ã module_evalã使ã£ã¦ããããå½ã¦ã has_many ãåå®ç¾©ãã (Rails 3.2) destroy ç¨ã®ã¡ã½ããããªã¼
{{#tags}}- {{label}}
{{/tags}}