diff options
author | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2019-07-12 15:30:28 -0400 |
---|---|---|
committer | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2019-07-22 12:35:04 -0400 |
commit | 3cf65bcb8ee3c27204dee5cac003a749973240f9 (patch) | |
tree | b3d5537d6fe9e84ece34ef1bf4cb4e3d70226fc7 /activestorage/lib/active_storage.rb | |
parent | 3b36d75c8fef2e8d3bc9db87486729d4e8229840 (diff) | |
download | rails-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/lib/active_storage.rb')
-rw-r--r-- | activestorage/lib/active_storage.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activestorage/lib/active_storage.rb b/activestorage/lib/active_storage.rb index 75eb63f0b4..c35a9920d6 100644 --- a/activestorage/lib/active_storage.rb +++ b/activestorage/lib/active_storage.rb @@ -60,6 +60,7 @@ module ActiveStorage mattr_accessor :service_urls_expire_in, default: 5.minutes mattr_accessor :routes_prefix, default: "/rails/active_storage" + mattr_accessor :draw_routes, default: true mattr_accessor :replace_on_assign_to_many, default: false |