Module: Sprockets::Rails::HelperAssetResolvers
- Defined in:
- lib/sprockets/rails/helper.rb
Overview
Use a separate module since Helper is mixed in and we needn’t pollute the class namespace with our internals.
Defined Under Namespace
Classes: Environment, Manifest
Class Method Summary collapse
-
.[](name) ⇒ Object
:nodoc:.
Class Method Details
.[](name) ⇒ Object
:nodoc:
269 270 271 272 273 274 275 276 277 278 |
# File 'lib/sprockets/rails/helper.rb', line 269 def self.[](name) case name when :manifest Manifest when :environment Environment else raise ArgumentError, "Unrecognized asset resolver: #{name.inspect}. Expected :manifest or :environment" end end |