Class: Ember::Rails::Railtie

Inherits:
Rails::Railtie
  • Object
show all
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