aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/config
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2019-07-12 15:30:28 -0400
committerGannon McGibbon <gannon.mcgibbon@gmail.com>2019-07-22 12:35:04 -0400
commit3cf65bcb8ee3c27204dee5cac003a749973240f9 (patch)
treeb3d5537d6fe9e84ece34ef1bf4cb4e3d70226fc7 /activestorage/config
parent3b36d75c8fef2e8d3bc9db87486729d4e8229840 (diff)
downloadrails-3cf65bcb8ee3c27204dee5cac003a749973240f9.tar.gz
rails-3cf65bcb8ee3c27204dee5cac003a749973240f9.tar.bz2
rails-3cf65bcb8ee3c27204dee5cac003a749973240f9.zip
Make Active Storage routes optional
Add configuration option to turn off drawing of Active Storage routes.
Diffstat (limited to 'activestorage/config')
-rw-r--r--activestorage/config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/config/routes.rb b/activestorage/config/routes.rb
index 3af7361cff..bde53e72f3 100644
--- a/activestorage/config/routes.rb
+++ b/activestorage/config/routes.rb
@@ -29,4 +29,4 @@ Rails.application.routes.draw do
resolve("ActiveStorage::Blob") { |blob, options| route_for(:rails_blob, blob, options) }
resolve("ActiveStorage::Attachment") { |attachment, options| route_for(:rails_blob, attachment.blob, options) }
-end
+end if ActiveStorage.draw_routes