Sha256: 86b2a0a39a69066553f9d453ea7c8a00fc912cb07f1c00bc92622dc955edee2a
Contents?: true
Size: 839 Bytes
Versions: 2
Compression:
Stored size: 839 Bytes
Contents
# frozen_string_literal: true class Roda module RodaPlugins module Rodbot class << self def load_dependencies(app) app.plugin :multi_run app.plugin :environments app.plugin :heartbeat app.plugin :public app.plugin :run_append_slash app.plugin :halt app.plugin :unescape_path app.plugin :render, layout: './layout', views: 'app/views' load_rodbot_dependencies(app) end private def load_rodbot_dependencies(app) ::Rodbot.plugins.extend_app ::Rodbot.plugins.extensions[:app].keys.each { app.plugin _1 } end end module RequestMethods def arguments params['arguments'] end end end register_plugin :rodbot, Rodbot end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rodbot-0.5.1 | lib/roda/plugins/rodbot.rb |
rodbot-0.5.0 | lib/roda/plugins/rodbot.rb |