File: utils.rb

package info (click to toggle)
ruby-sprockets-rails 3.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 436 kB
  • sloc: ruby: 2,071; makefile: 4; javascript: 4
file content (11 lines) | stat: -rw-r--r-- 198 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
require 'sprockets'

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