Sha256: 48a321fcf78aa4ac8444de380cbdb810715c2cd63ea7ca43773aeae2eb6ef361
Contents?: true
Size: 497 Bytes
Versions: 4
Compression:
Stored size: 497 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 InlineSvg.configure do |config| config.asset_finder = app.instance_variable_get(:@assets) # In most cases this will be the Sprockets::Environment instance of the Rails app. end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
inline_svg-0.5.1 | lib/inline_svg/railtie.rb |
inline_svg-0.5.0 | lib/inline_svg/railtie.rb |
inline_svg-0.4.0 | lib/inline_svg/railtie.rb |
inline_svg-0.3.0 | lib/inline_svg/railtie.rb |