2023-02-17 13:16:03 +01:00
|
|
|
module FoodsoftBnnUpload
|
|
|
|
class Engine < ::Rails::Engine
|
2023-02-23 00:14:00 +01:00
|
|
|
config.to_prepare do
|
|
|
|
Dir.glob(Rails.root + "app/decorators/**/*_decorator*.rb").each do |c|
|
|
|
|
require_dependency(c)
|
|
|
|
end
|
|
|
|
end
|
2023-02-17 13:16:03 +01:00
|
|
|
def default_foodsoft_config(cfg)
|
|
|
|
cfg[:use_bnn_upload] = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|