Sha256: 415c44627e22e0bcfa4756352d38c8e893c1db56e826f6bda951eadcbff03ee9

Contents?: true

Size: 660 Bytes

Versions: 2

Compression:

Stored size: 660 Bytes

Contents

require 'blacklight'

module Blacklight
  module Oembed
    class Engine < Rails::Engine
      # @deprecated
      config.render_helper = :render_oembed_tag_async

      ##
      # Allows an adopter to pass additional parameters through to an OEmbed
      # service. Examples of this could include `:canvas_index`, or `:max_width`
      config.additional_params = []

      initializer 'blacklight_oembed.importmap', before: 'importmap' do |app|
        app.config.assets.paths << Engine.root.join("app/javascript")
        app.config.importmap.paths << Engine.root.join('config/importmap.rb') if app.config.respond_to?(:importmap)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-oembed-1.4.2 lib/blacklight/oembed/engine.rb
blacklight-oembed-1.4.1 lib/blacklight/oembed/engine.rb