Sha256: 7de4e31a19b7980fb73911651a6ceff079ab09e9bf9f3437248c7c25a3ca27e7

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

module Koudoku
  class ApplicationController < ::ApplicationController
    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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
koudoku-1.2.2 app/controllers/koudoku/application_controller.rb
koudoku-1.2.1 app/controllers/koudoku/application_controller.rb
koudoku-1.2.0 app/controllers/koudoku/application_controller.rb