开发者

Ruby Gem or Rails plugin

开发者 https://www.devze.com 2023-02-17 18:45 出处:网络
I am writing a gem that requires rails as a dependency (for using Rails methods like underscore, camelize and others).

I am writing a gem that requires rails as a dependency (for using Rails methods like underscore, camelize and others).

Is 'gem' still a gem or is it now somet开发者_开发技巧hing else (Rails Plugin?) since I have rails as a dependency?


You don't have to depend on Rails as a whole (in fact if it really is a standalone gem, I would recommend that you do not) you can depend on just the parts of it that provide the functionality you need, in this case you are talking about ActiveSupport.

0

精彩评论

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