mindpin / kc_courses

MIT License
0 stars 6 forks source link

add engine 打补丁机制 #10

Closed fushang318 closed 8 years ago

fushang318 commented 8 years ago

以前给 gem/engine 打补丁都是写在 config/initializers/gem_integration.rb 一个文件,当 gem/engine 过多时,便不再好维护了

所以想出这个方便维护的方式:
集成时,把补丁文件按照 xxx_decorator.rb 来命名,并放到 app/decorators/<gem_name> 目录