Module: Sprockets::Rails::Utils

Included in:
Helper, Helper::AssetNotPrecompiledError, Sprockets::Railtie
Defined in:
lib/sprockets/rails/utils.rb

Instance Method Summary collapse

Instance Method Details

#using_sprockets4?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/sprockets/rails/utils.rb', line 6

def using_sprockets4?
  Gem::Version.new(Sprockets::VERSION) >= Gem::Version.new('4.x')
end