7 Patterns to Refactor Fat ActiveRecord Models ã¨ããè¨äºããããèªããèªããã¨æãã¤ã¤1å¹´ãããçµã£ã¦ãã¾ã£ãã ããããèªãã ã®ã§ç解ããå 容ãæ¸ãã¦ããã ã³ã¼ãä¾ã¯å è¨äºã®ãã®ã Rails 㧠thin controller, fat model ãå¿ããã¦ããã¨ãmodel ããã¸ã§æ¿å¤ªããã¦ã¤ãããªãã å®éã«èªåãä»äºã§æ¸ãã¦ãã rails ã¢ããªãæ¿å¤ªããã¦ã¦ã¤ããã ãã® blog ã®çè ãä½ã£ã¦ãã CodeClimate 㧠C å¤å®ããããç¨åº¦ã«ã¯è¥æºä½åã«ãªã£ã¦ããã Mixinã«æãåºããªã! Model ã太ã£ã¦ããæã«èããã®ã¯ ActiveSupport::Concern ã使ã£ã¦æå¿äºãæãåºãã¦ãMixin ã«ãããã¨ã ã¨æãã å®éã«æå ã®ã¢ããªã§ã models/concerns/ ãªãã¦ãããã£ã¬
{{#tags}}- {{label}}
{{/tags}}