阅读背景:

在外部轨道宝石中覆盖功能/视图/控制器的正确方法

来源:互联网 

I'm using some framework (blacklight) that I need to change and extend to my own needs. Namely, I need to reimplement some functions, views and controllers. What I currently do is copying the file to a matching path in my working directory and make the changes inside the copied file. That way, my copied file overrides the original file in the gem. When a new version of the gem is released I might have to change my copied file accordingly. I don't like the way I solve the problem of modifying gems. Is there a better way to do it?) that I ne




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: