开发者

Rails3 plugin - load environment for rake task

What should I do t开发者_运维问答o load rails models for rake task which is part of my plugin?


Require the :environment rake task to run before it.

task :my_task => :environment do

end
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜