Actions
Bug #3988
closedExpected app/services/foreman/plugin.rb to define Plugin
Description
Since #3821, the "rake locale:find" command throws an error, identical to the one we saw during the PR with rake test:
rake aborted! Expected /home/dcleal/code/foreman/foreman/app/services/foreman/plugin.rb to define Plugin /home/dcleal/.rvm/gems/ruby-2.0.0-p247@foreman/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:503:in `load_missing_constant' /home/dcleal/code/foreman/foreman_hooks/lib/foreman_hooks.rb:82:in `load_missing_constant_with_hooks' /home/dcleal/.rvm/gems/ruby-2.0.0-p247@foreman/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:192:in `block in const_missing' /home/dcleal/.rvm/gems/ruby-2.0.0-p247@foreman/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:190:in `each' /home/dcleal/.rvm/gems/ruby-2.0.0-p247@foreman/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:190:in `const_missing' /home/dcleal/.rvm/gems/ruby-2.0.0-p247@foreman/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:514:in `load_missing_constant'
I suspect using autoload_once not on the top level dir (app/services) means it thinks the foreman subdir is just part of the path and not part of the class namespace. Maybe it's only happening with this rake task because it loads so many of the models and classes known in the application, while other simpler rake tasks don't, and rake test isn't affected by the previous commit because it's in the test environment.
Updated by Dominic Cleal almost 11 years ago
- Related to Bug #3821: Plugin menus are lost after page refresh in development mode added
Updated by Dominic Cleal almost 11 years ago
- Priority changed from High to Urgent
Also breaks /apidoc...
Updated by Dominic Cleal almost 11 years ago
- Related to Bug #4140: GET on /API generate 500 error added
Updated by Dominic Cleal almost 11 years ago
- Translation missing: en.field_release deleted (
2)
Updated by Dominic Cleal over 10 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ivan Necas
- Target version set to 1.9.0
- Translation missing: en.field_release set to 4
Updated by Ivan Necas over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 70ce8fe77863d4f853466e0bb967f62ba9e6cff3.
Actions