{"action":"closed","issue":{"url":"https://api.github.com/repos/plataformatec/devise/issues/3664","labels_url":"https://api.github.com/repos/plataformatec/devise/issues/3664/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/devise/issues/3664/comments","events_url":"https://api.github.com/repos/plataformatec/devise/issues/3664/events","html_url":"https://github.com/plataformatec/devise/issues/3664","id":92688318,"number":3664,"title":" Multi-Tenant Engine & Devise - NameError: uninitialized constant Use","user":{"login":"bradpotts","id":4887598,"avatar_url":"https://avatars.githubusercontent.com/u/4887598?v=3","gravatar_id":"","url":"https://api.github.com/users/bradpotts","html_url":"https://github.com/bradpotts","followers_url":"https://api.github.com/users/bradpotts/followers","following_url":"https://api.github.com/users/bradpotts/following{/other_user}","gists_url":"https://api.github.com/users/bradpotts/gists{/gist_id}","starred_url":"https://api.github.com/users/bradpotts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradpotts/subscriptions","organizations_url":"https://api.github.com/users/bradpotts/orgs","repos_url":"https://api.github.com/users/bradpotts/repos","events_url":"https://api.github.com/users/bradpotts/events{/privacy}","received_events_url":"https://api.github.com/users/bradpotts/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-02T17:17:51Z","updated_at":"2015-07-04T15:03:04Z","closed_at":"2015-07-04T15:03:04Z","body":"Not sure if this is an issue I should bring to devise's attention. I already posted on SO but would like your guys opinion and see if anybody is having the same problems.\r\n\r\nEngine & devise all configured with rspec tests passing. \r\nhttps://github.com/CoastDigitalGroup/cdg-subengine\r\n\r\nExample Starter App I'm trying establish.\r\nhttps://github.com/CoastDigitalGroup/cdg-substarter\r\n\r\nAs soon as I attach the engine w/ devise (using github) in the gemfile the starter app starts giving: NameError: uninitialized constant User on rake commands.\r\n\r\n I went w/  through the engine several times, including re-install & reconfiguring devise to work within the engine. Seems to pass rspec tests fine but can't actually implement it in an app.\r\n\r\n** Invoke routes (first_time)\r\n** Invoke environment (first_time)\r\n** Execute environment\r\nrake aborted!\r\nNameError: uninitialized constant User\r\n/home/nitrous/code/cdg-substarter/.bundle/bundler/gems/cdg-subengine-2af76555ad4c/app/models/subengine/user.rb:26:in `<module:Subengine>'\r\n/home/nitrous/code/cdg-substarter/.bundle/bundler/gems/cdg-subengine-2af76555ad4c/app/models/subengine/user.rb:25:in `<top (required)>'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/inflector/methods.rb:263:in `const_get'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/inflector/methods.rb:263:in `block in constantize'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/inflector/methods.rb:259:in `each'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/inflector/methods.rb:259:in `inject'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/inflector/methods.rb:259:in `constantize'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise.rb:290:in `get'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/mapping.rb:81:in `to'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/mapping.rb:76:in `modules'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/mapping.rb:93:in `routes'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/mapping.rb:160:in `default_used_route'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/mapping.rb:70:in `initialize'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise.rb:324:in `new'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise.rb:324:in `add_mapping'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/rails/routes.rb:224:in `block in devise_for'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/rails/routes.rb:223:in `each'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/devise-3.5.1/lib/devise/rails/routes.rb:223:in `devise_for'\r\n/home/nitrous/code/cdg-substarter/.bundle/bundler/gems/cdg-subengine-2af76555ad4c/config/routes.rb:17:in `block in <top (required)>'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/mapper.rb:601:in `instance_exec'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/mapper.rb:601:in `block in with_default_scope'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/mapper.rb:816:in `scope'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/mapper.rb:600:in `with_default_scope'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:432:in `eval_block'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:412:in `draw'\r\n/home/nitrous/code/cdg-substarter/.bundle/bundler/gems/cdg-subengine-2af76555ad4c/config/routes.rb:3:in `<top (required)>'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:40:in `each'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:40:in `load_paths'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:16:in `reload!'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:26:in `block in updater'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/file_update_checker.rb:75:in `call'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/activesupport-4.2.3/lib/active_support/file_update_checker.rb:75:in `execute'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:27:in `updater'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/initializable.rb:30:in `instance_exec'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/initializable.rb:30:in `run'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `each'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `call'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/initializable.rb:54:in `run_initializers'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application.rb:352:in `initialize!'\r\n/home/nitrous/code/cdg-substarter/config/environment.rb:5:in `<top (required)>'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application.rb:328:in `require_environment!'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/railties-4.2.3/lib/rails/application.rb:457:in `block in run_tasks_blocks'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'\r\n/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'\r\n/home/nitrous/code/cdg-substarter/.bundle/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'\r\n.bundle/binstubs/rake:16:in `load'\r\n.bundle/binstubs/rake:16:in `<main>'\r\nTasks: TOP => routes => environment\r\n"}}