Drew LeSueur
Drew LeSueur

Reputation: 20145

What does `lib` mean in the config.gem call in environment.rb

I see a command in environment.rb that says

config.gem 'thoughtbot-paperclip', :lib => 'paperclip', :source => 'http://gems.github.com'

If I wanted to manually do it, it would be

gem install thoughtbot-papperclip --source http://gems.github.com

Where does the lib fit in to the command line gem call?

Upvotes: 2

Views: 388

Answers (2)

William
William

Reputation: 611

You want to use :lib in your environment.rb if the library name is different with the gem name.

Upvotes: 3

Sam 山
Sam 山

Reputation: 42865

Paperclip doesn't need a library call.

gem.config 'paperclip' 

that should take care of paperclip.

Some gems have crazy dependencies like syntax highlighting and they need to reference a library to meet the dependencies.

Upvotes: 0

Related Questions