take-five / activerecord-hierarchical_query

Simple DSL for creating recursive queries with ActiveRecord
MIT License
119 stars 24 forks source link

require statement #2

Closed tinderfields closed 9 years ago

tinderfields commented 9 years ago

Initially including the gemfile did not allow me to use the join_recursive function immediately in the console I had to do:

 require 'active_record/hierarchical_query'
take-five commented 9 years ago

Maybe you use old bundler version. Try to write in Gemfile:

gem 'activerecord-hierarchical_query', require: 'active_record/hierarchical_query'
lgebhardt commented 9 years ago

I'm seeing the same issue using bundler 1.10.6. As you mention this works:

gem 'activerecord-hierarchical_query', require: 'active_record/hierarchical_query'