Fix routes for addons installer

This commit is contained in:
Anton Ignatov 2019-09-17 16:11:40 +02:00
parent 06dd43344f
commit 63d62734ee

View file

@ -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