Class: SccRails::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/scc_rails/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#refreshObject



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.message
  render json: { msg: e.message }, status: 500
end