module InlineSvg

Naive fallback asset finder for when sprockets >= 3.0 && config.assets.precompile = false Thanks to @ryanswood for the original code: github.com/jamesmartin/inline_svg/commit/661bbb3bef7d1b4bd6ccd63f5f018305797b9509

Constants

VERSION

Attributes

configuration[R]

Public Class Methods

configure() { |configuration| ... } click to toggle source
# File lib/inline_svg.rb, line 92
def configure
  if block_given?
    yield configuration
  else
    raise InlineSvg::Configuration::Invalid.new('Please set configuration options with a block')
  end
end
reset_configuration!() click to toggle source
# File lib/inline_svg.rb, line 100
def reset_configuration!
  @configuration = InlineSvg::Configuration.new
end