Merge pull request #1397 from internetee/remove-unneeded-code

Remove unneeded code
This commit is contained in:
Timo Võhmar 2019-10-31 16:27:18 +02:00 committed by GitHub
commit d3ae728a7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +0,0 @@
if Rails.env.development?
ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Repp::API'
api_files = Dir[Rails.root.join('app', 'api', '**', '*.rb')]
api_reloader = ActiveSupport::FileUpdateChecker.new(api_files) do
Rails.application.reload_routes!
end
ActionDispatch::Callbacks.to_prepare do
api_reloader.execute_if_updated
end
end