Module: Roda::RodaPlugins::Kabk
- Defined in:
- lib/roda/plugins/kabk.rb,
lib/roda/plugins/kabk/version.rb
Overview
Kabk plugin for Roda — Smart Dispatch routing and Simurgh Panel integration.
Defined Under Namespace
Modules: RequestMethods
Constant Summary collapse
- VERSION =
Current version of the roda-kabk gem
"1.0.1"
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.
34 35 36 37 38 |
# File 'lib/roda/plugins/kabk.rb', line 34 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.
23 24 25 |
# File 'lib/roda/plugins/kabk.rb', line 23 def self.load_dependencies(app, _opts = {}) app.plugin :all_verbs end |