Sha256: 8710e986e4ab715575622b7ae38b24207f80958b55b1bddc86bc85e7a7772519

Contents?: true

Size: 425 Bytes

Versions: 17

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

class Roda
  module RodaPlugins
    module Initializers
      def self.load_dependencies(app)
        Bridgetown::Current.preloaded_configuration.initialize_roda_app(app)
      end

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

    register_plugin :initializers, Initializers
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bridgetown-core-2.0.0.beta3 lib/roda/plugins/initializers.rb
bridgetown-core-2.0.0.beta2 lib/roda/plugins/initializers.rb
bridgetown-core-2.0.0.beta1 lib/roda/plugins/initializers.rb
bridgetown-core-1.3.4 lib/roda/plugins/initializers.rb
bridgetown-core-1.3.3 lib/roda/plugins/initializers.rb
bridgetown-core-1.3.2 lib/roda/plugins/initializers.rb
bridgetown-core-1.3.1 lib/roda/plugins/initializers.rb
bridgetown-core-1.3.0 lib/roda/plugins/initializers.rb
bridgetown-core-1.3.0.beta3 lib/roda/plugins/initializers.rb
bridgetown-core-1.3.0.beta2 lib/roda/plugins/initializers.rb
bridgetown-core-1.3.0.beta1 lib/roda/plugins/initializers.rb
bridgetown-core-1.2.0 lib/roda/plugins/initializers.rb
bridgetown-core-1.2.0.beta5 lib/roda/plugins/initializers.rb
bridgetown-core-1.2.0.beta4 lib/roda/plugins/initializers.rb
bridgetown-core-1.2.0.beta3 lib/roda/plugins/initializers.rb
bridgetown-core-1.2.0.beta2 lib/roda/plugins/initializers.rb
bridgetown-core-1.2.0.beta1 lib/roda/plugins/initializers.rb