Sam
Sam

Reputation: 8693

Why does active_support requires sinatra

I don't use sinatra anywhere in my app, its not clear why activesupport mandates needing sinatra. How should I avoid this problem

/home/user/.rvm/gems/ruby-1.9.3-p286@app/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- sinatra/base (LoadError)

Upvotes: 0

Views: 571

Answers (2)

kale
kale

Reputation: 1261

It is most likely a dependency of another gem. For example, resque uses Sinatra to display monitoring. You can use gem dependency to find these.

Upvotes: 2

Frederick Cheung
Frederick Cheung

Reputation: 84132

Active Support doesn't require sinatra. However, since active support is the bit of rails that handles missing constants (and as such patches require) it will show up in the stack trace when require fails.

Upvotes: 3

Related Questions