Class: AutoprefixedRails::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/autoprefixer-rails/railtie.rb

Instance Method Summary collapse

Instance Method Details

#browsers(app) ⇒ Object

Read browsers requirements from application config



33
34
35
36
37
# File 'lib/autoprefixer-rails/railtie.rb', line 33

def browsers(app)
  file   = app.root.join('config/autoprefixer.yml')
  config = file.exist? ? YAML.load_file(file) : { 'browsers' => nil }
  config['browsers']
end