wip plugin
This commit is contained in:
parent
78da4feafe
commit
f9229034de
13 changed files with 100 additions and 0 deletions
7
plugins/bnn_upload/lib/foodsoft_bnn_upload.rb
Normal file
7
plugins/bnn_upload/lib/foodsoft_bnn_upload.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
require 'foodsoft_bnn_upload/engine'
|
||||
|
||||
module FoodsoftBnnUpload
|
||||
def self.enabled?
|
||||
FoodsoftConfig[:use_bnn_upload]
|
||||
end
|
||||
end
|
||||
7
plugins/bnn_upload/lib/foodsoft_bnn_upload/engine.rb
Normal file
7
plugins/bnn_upload/lib/foodsoft_bnn_upload/engine.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
module FoodsoftBnnUpload
|
||||
class Engine < ::Rails::Engine
|
||||
def default_foodsoft_config(cfg)
|
||||
cfg[:use_bnn_upload] = true
|
||||
end
|
||||
end
|
||||
end
|
||||
3
plugins/bnn_upload/lib/foodsoft_bnn_upload/version.rb
Normal file
3
plugins/bnn_upload/lib/foodsoft_bnn_upload/version.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module FoodsoftBnnUpload
|
||||
VERSION = "0.0.1"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue