Class: AutoprefixedRails::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- AutoprefixedRails::Railtie
- Defined in:
- lib/autoprefixer-rails/railtie.rb
Instance Method Summary collapse
-
#browsers(app) ⇒ Object
Read browsers requirements from application config.
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 |