From 63d62734ee5323eff458a9d8e916f49555a74c7f Mon Sep 17 00:00:00 2001 From: Anton Ignatov Date: Tue, 17 Sep 2019 16:11:40 +0200 Subject: [PATCH] Fix routes for addons installer --- config/routes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index bf548514c..9a5fd23ac 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,6 +3,8 @@ Rails.application.routes.draw do skip_controllers :applications, :authorized_applications, :token_info end + # Addons + def draw(routes_name) instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) end