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

Version Path
inline_svg-1.0.0 lib/inline_svg/railtie.rb
inline_svg-0.12.1 lib/inline_svg/railtie.rb
inline_svg-0.12.0 lib/inline_svg/railtie.rb
inline_svg-0.11.1 lib/inline_svg/railtie.rb
inline_svg-0.11.0 lib/inline_svg/railtie.rb
inline_svg-0.10.0 lib/inline_svg/railtie.rb
inline_svg-0.9.1 lib/inline_svg/railtie.rb
inline_svg-0.9.0 lib/inline_svg/railtie.rb
inline_svg-0.8.0 lib/inline_svg/railtie.rb
inline_svg-0.7.0 lib/inline_svg/railtie.rb
inline_svg-0.6.4 lib/inline_svg/railtie.rb
inline_svg-0.6.3 lib/inline_svg/railtie.rb
inline_svg-0.6.2 lib/inline_svg/railtie.rb
inline_svg-0.6.1 lib/inline_svg/railtie.rb
inline_svg-0.6.0 lib/inline_svg/railtie.rb
inline_svg-0.5.3 lib/inline_svg/railtie.rb
inline_svg-0.5.2 lib/inline_svg/railtie.rb