Class: BBMB::Util::RackInterface
- Inherits:
-
SBSM::RackInterface
- Object
- SBSM::RackInterface
- BBMB::Util::RackInterface
- Defined in:
- lib/bbmb/util/rack_interface.rb
Constant Summary collapse
- ENABLE_ADMIN =
true- SESSION =
Html::Util::Session
- VALIDATOR =
Html::Util::Validator
Instance Method Summary collapse
-
#initialize(app: BBMB::Util::App.new, auth: nil, validator: BBMB::Html::Util::Validator) ⇒ RackInterface
constructor
A new instance of RackInterface.
Constructor Details
#initialize(app: BBMB::Util::App.new, auth: nil, validator: BBMB::Html::Util::Validator) ⇒ RackInterface
Returns a new instance of RackInterface.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/bbmb/util/rack_interface.rb', line 27 def initialize(app: BBMB::Util::App.new, auth: nil, validator: BBMB::Html::Util::Validator) [ File.join(Dir.pwd, 'etc', 'config.yml'), ].each do |config_file| if File.exist?(config_file) SBSM.info "BBMB.config.load from #{config_file}" BBMB.config.load (config_file) break end end @app = app super(app: app, session_class: BBMB::Html::Util::Session, validator: validator, cookie_name: 'virbac.bbmb' ) end |