geokit / geokit-rails

Official Geokit plugin for Rails/ActiveRecord. Provides location-based goodness for your Rails app. Requires the Geokit gem.
MIT License
1.57k stars 245 forks source link

NameError: wrong constant name Geokit-rails #115

Closed babasbot closed 7 years ago

babasbot commented 7 years ago

When running Rails.application.eager_load! raises a NameError:

$ rake resque:work
rake aborted!
NameError: wrong constant name Geokit-rails
Tasks: TOP => resque:work => resque:preload
(See full trace by running task with --trace)

I think that the file structure must be:

├── lib
│   ├── geokit_rails
│   └── geokit_rails.rb

Instead of:

├── lib
│   ├── geokit-rails
│   └── geokit-rails.rb

On eager loading geokit-rails is treated as Geokit::Rails instead of GeokitRails.

babasbot commented 7 years ago

Nevermind, this is not an error :)