When do you need a require in a rails Gemfile?

后端 未结 4 1277
野趣味
野趣味 2020-12-20 15:49

In my gemfile I have things like:

gem \'net-sftp\', \'2.1.1\', :require => \'net/sftp\'
gem \'backup\', \'3.0.27\'
gem \'watu_table_builder\', :require =&         


        
4条回答
  •  执笔经年
    2020-12-20 16:19

    This is often used if the name of the library to require is different than the name of the gem. In your case it would download the gem 'watu_table_builder', but would call 'table_builder'.

提交回复
热议问题