Sha256: 8bb92887371ef49013def7c00f35b4f3821d6b99fd96d9751c0cb1cb30d49d65
Contents?: true
Size: 562 Bytes
Versions: 17
Compression:
Stored size: 562 Bytes
Contents
require 'rails/railtie' module InlineSvg class Railtie < ::Rails::Railtie initializer "inline_svg.action_view" do |app| ActiveSupport.on_load :action_view do require "inline_svg/action_view/helpers" include InlineSvg::ActionView::Helpers end end config.after_initialize do |app| InlineSvg.configure do |config| # In default Rails apps, this will be a fully operational # Sprockets::Environment instance config.asset_finder = app.instance_variable_get(:@assets) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems