Search code examples
rubyrubygemsrake

Where is this gem?


I have a system where I use the gem sinatra-activerecord (required by sinatra/activerecord in my Rakefile by requiring sinatra/activerecord/rake. I've looked in rubygems and there is no gem called sinatra-activrecord-rake, so what part of sinatra-activerecord is it? Also, how could I make part of my gem require-able this way?


Solution

  • When you require sinatra/activerecord/rake, you are actually requiring the rake file within the gem.

    Specifically, this is the file that the library is requiring. It's not from any sinatra-activerecord-rake gem.