app/controllers/koudoku/application_controller.rb in koudoku-1.1.2 vs app/controllers/koudoku/application_controller.rb in koudoku-1.2.0

- old
+ new

@@ -1,6 +1,10 @@ module Koudoku class ApplicationController < ::ApplicationController - layout 'application' + layout Koudoku.layout helper :application + + # stolen from http://stackoverflow.com/questions/9232175/access-main-app-helpers-when-overridings-a-rails-engine-view-layout#comment44856124_19453140 + # to solve the problem of having to reference "main_app.$some_model_path" in layouts + helper Rails.application.routes.url_helpers end end