Class: SccRails::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- SccRails::ApplicationController
- Defined in:
- app/controllers/scc_rails/application_controller.rb
Instance Method Summary collapse
Instance Method Details
#refresh ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/controllers/scc_rails/application_controller.rb', line 5 def refresh SccRails::Engine.reload_config Rails.logger.info '$cloud_env has been reloaded from spring cloud config server' render json: { msg: 'ok' } rescue Exception => e Rails.logger.error e. render json: { msg: e. }, status: 500 end |