fix deprecation warning

This commit is contained in:
wvengen 2014-06-25 16:28:08 +02:00
parent 6115979bae
commit daae87f6d5
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class FoodsoftConfig
}
}
# allow engines to easily add to this
engines = Rails.application.railties.engines.select { |e| e.respond_to?(:default_foodsoft_config) }
engines = Rails::Engine::Railties.engines.select { |e| e.respond_to?(:default_foodsoft_config) }
engines.each { |e| e.default_foodsoft_config(cfg) }
cfg
end