Module: Roda::RodaPlugins::Initializers

Defined in:
lib/roda/plugins/initializers.rb

Class Method Summary collapse

Class Method Details

.configure(app, _opts = {}) ⇒ Object



10
11
12
# File 'lib/roda/plugins/initializers.rb', line 10

def self.configure(app, _opts = {})
  app.opts[:bridgetown_preloaded_config] = Bridgetown::Current.preloaded_configuration
end

.load_dependencies(app) ⇒ Object



6
7
8
# File 'lib/roda/plugins/initializers.rb', line 6

def self.load_dependencies(app)
  Bridgetown::Current.preloaded_configuration.initialize_roda_app(app)
end