Class: Ember::Rails::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Ember::Rails::Railtie
- Defined in:
- lib/ember_rails.rb
Instance Method Summary collapse
Instance Method Details
#location_for(app, file) ⇒ Object
53 54 55 56 57 58 59 |
# File 'lib/ember_rails.rb', line 53 def location_for(app, file) path = app.config.assets.paths.find do |dir| Pathname.new(dir).join(file).exist? end File.join(path, file) if path end |