lib/generators/decidim/templates/autoprefixer_initializer.rb in decidim-dev-0.1.0 vs lib/generators/decidim/templates/autoprefixer_initializer.rb in decidim-dev-0.2.0

- old
+ new

@@ -1,16 +1,17 @@ # frozen_string_literal: true + module AutoprefixerRails class Sprockets singleton_class.send(:alias_method, :call_original, :call) def self.call(input) filename = input[:name] # Disable autoprefixer for the graphiql-rails gem's assets because it # breaks some of the API tests when the '-webkit' prefixes are applied to # its CSS. - return if filename =~ %r{^graphiql/.*} + return if filename.match?(%r{^graphiql/.*}) call_original(input) end end end