lib/disco_app/engine.rb in disco_app-0.6.1 vs lib/disco_app/engine.rb in disco_app-0.6.2
- old
+ new
@@ -3,9 +3,21 @@
require 'jquery-rails'
require 'turbolinks'
module DiscoApp
class Engine < ::Rails::Engine
+
isolate_namespace DiscoApp
engine_name 'disco_app'
+
+ # Ensure DiscoApp helpers are available throughout application.
+ config.to_prepare do
+ ApplicationController.helper(DiscoApp::ApplicationHelper)
+ end
+
+ # Ensure our frame assets are included for precompilation.
+ initializer 'disco_app.assets.precompile' do |app|
+ app.config.assets.precompile += %w(disco_app/frame.css disco_app/frame.js)
+ end
+
end
end