Module: InlineSvg
- Defined in:
- lib/inline_svg/static_asset_finder.rb,
lib/inline_svg.rb,
lib/inline_svg/railtie.rb,
lib/inline_svg/version.rb,
lib/inline_svg/asset_file.rb,
lib/inline_svg/io_resource.rb,
lib/inline_svg/id_generator.rb,
lib/inline_svg/cached_asset_file.rb,
lib/inline_svg/finds_asset_paths.rb,
lib/inline_svg/transform_pipeline.rb,
lib/inline_svg/action_view/helpers.rb,
lib/inline_svg/webpack_asset_finder.rb,
lib/inline_svg/propshaft_asset_finder.rb,
lib/inline_svg/transform_pipeline/transformations/transformation.rb
Overview
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
Defined Under Namespace
Modules: ActionView, IOResource, TransformPipeline Classes: AssetFile, CachedAssetFile, Configuration, CustomTransformation, FindsAssetPaths, IdGenerator, PropshaftAssetFinder, Railtie, StaticAssetFinder, WebpackAssetFinder
Constant Summary collapse
- VERSION =
"1.10.0"
Class Attribute Summary collapse
-
.configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
90 91 92 |
# File 'lib/inline_svg.rb', line 90 def configuration @configuration end |
Class Method Details
.configure ⇒ Object
92 93 94 95 96 97 98 |
# 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! ⇒ Object
100 101 102 |
# File 'lib/inline_svg.rb', line 100 def reset_configuration! @configuration = InlineSvg::Configuration.new end |