Class: Ember::Rails::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/ember_rails.rb

Instance Method Summary collapse

Instance Method Details

#configure_assets(app, &block) ⇒ Object



48
49
50
51
52
53
54
55
56
# File 'lib/ember_rails.rb', line 48

def configure_assets(app, &block)
  if config.respond_to?(:assets) && config.assets.respond_to?(:configure)
    # Rails 4.x
    config.assets.configure(&block)
  else
    # Rails 3.2
    yield app.assets
  end
end