/usr/lib/ruby/vendor_ruby/autoprefixer-rails/railtie.rb is in ruby-autoprefixer-rails 6.3.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | require 'yaml'
begin
module AutoprefixedRails
class Railtie < ::Rails::Railtie
rake_tasks do |app|
require 'rake/autoprefixer_tasks'
Rake::AutoprefixerTasks.new( config(app.root) ) if defined? app.assets
end
if config.respond_to?(:assets) and not config.assets.nil?
config.assets.configure do |env|
AutoprefixerRails.install(env, config(env.root))
end
else
initializer :setup_autoprefixer, group: :all do |app|
if defined? app.assets and not app.assets.nil?
AutoprefixerRails.install(app.assets, config(app.root))
end
end
end
# Read browsers requirements from application config
def config(root)
file = File.join(root, 'config/autoprefixer.yml')
params = ::YAML.load_file(file) if File.exist?(file)
params ||= {}
params = params.symbolize_keys
params
end
end
end
rescue LoadError
end
|