Module: Roda::RodaPlugins::Kabk
- Defined in:
- lib/roda/plugins/kabk.rb
Overview
Kabk plugin for Roda — Smart Dispatch routing and Simurgh Panel integration.
Defined Under Namespace
Modules: RequestMethods
Class Method Summary collapse
-
.configure(app, opts = {}) ⇒ void
Configures the plugin options for the application.
-
.load_dependencies(app, _opts = {}) ⇒ void
Loads plugin dependencies into the Roda application.
Class Method Details
.configure(app, opts = {}) ⇒ void
This method returns an undefined value.
Configures the plugin options for the application.
33 34 35 36 37 |
# File 'lib/roda/plugins/kabk.rb', line 33 def self.configure(app, opts = {}) app.opts[:kabk] ||= {} app.opts[:kabk][:system_config] = opts[:system_config] || nil app.opts[:kabk][:upload_handler] = opts[:upload_handler] end |
.load_dependencies(app, _opts = {}) ⇒ void
This method returns an undefined value.
Loads plugin dependencies into the Roda application.
22 23 24 |
# File 'lib/roda/plugins/kabk.rb', line 22 def self.load_dependencies(app, _opts = {}) app.plugin :all_verbs end |