Class: XmlConv::Util::RackInterface
- Inherits:
-
SBSM::RackInterface
- Object
- SBSM::RackInterface
- XmlConv::Util::RackInterface
- Defined in:
- lib/xmlconv/util/rack_interface.rb
Constant Summary collapse
Instance Method Summary collapse
-
#initialize(app: XmlConvApp, auth: nil, validator: XmlConv::Util::Validator) ⇒ RackInterface
constructor
A new instance of RackInterface.
Constructor Details
#initialize(app: XmlConvApp, auth: nil, validator: XmlConv::Util::Validator) ⇒ RackInterface
Returns a new instance of RackInterface.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/xmlconv/util/rack_interface.rb', line 12 def initialize(app: XmlConvApp, auth: nil, validator: XmlConv::Util::Validator) [ File.join(Dir.pwd, 'etc', 'config.yml'), ].each do |config_file| if File.exist?(config_file) SBSM.info "XmlConv.config.load from #{config_file}" XmlConv.config.load (config_file) break end end @app = app super(app: app, session_class: XmlConv::Util::Session, unknown_user: XmlConv::Util::KnownUser.new, validator: validator, cookie_name: 'virbac.bbmb' ) end |