Sha256: 8cf79739e3cbfcc44a264152b43819b4dff0cc45ec5860b5533328ff9ec2fa96
Contents?: true
Size: 715 Bytes
Versions: 9
Compression:
Stored size: 715 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 # Only set this when a user-configured asset finder has not been # configured already. if config.asset_finder.nil? config.asset_finder = app.instance_variable_get(:@assets) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems