Files
openfoodnetwork/engines/web/app/controllers/web/angular_templates_controller.rb
luisramos0 921105301c Move angular-templates route and controller into Web engine
The route and controller were in the main app and the views in the engine, with this commit they stay all inside the engine
This is done to keep it simple and remove the unnecessary dependency between main app and engine
If we use this mechanism in the future for other things in the main app or other engines, we can find a way to extract/abstract this
2018-09-26 12:39:51 +01:00

10 lines
176 B
Ruby

module Web
class AngularTemplatesController < ApplicationController
helper Web::Engine.helpers
def show
render params[:id].to_s, layout: nil
end
end
end