fix deprecation warning

This commit is contained in:
wvengen 2014-06-25 16:28:08 +02:00
parent 6115979bae
commit daae87f6d5

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