Actions
Bug #8851
closedLoading seed file of plugins with dash in name fails
Description
Running db:seed rake task does not load seed files from engines (plugins) that contains dash in their name (e.g. foreman-tasks). Here's the trace from log (no other is displayed to user).
wrong constant name Foreman-tasks /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:230:in `const_defined?' /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:230:in `block in constantize' /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `each' /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `constantize' /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/core_ext/string/inflections.rb:54:in `constantize' /home/ares/Projekty/Zdrojaky/foreman/db/seeds.rb:55:in `block in <top (required)>' /home/ares/Projekty/Zdrojaky/foreman/db/seeds.rb:53:in `each' /home/ares/Projekty/Zdrojaky/foreman/db/seeds.rb:53:in `<top (required)>'
The fix is trivial, PR will follow.
Actions