Merge pull request #2062 from aignatov-bio/ai-sci-fix-routes-for-addons-installer

Fix routes for addons installer
This commit is contained in:
Miha Mencin 2019-09-27 10:52:16 +02:00 committed by GitHub
commit 11881e54a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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