Class: Admin::Ci::VariablesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::Ci::VariablesController
- Defined in:
- app/controllers/admin/ci/variables_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/admin/ci/variables_controller.rb', line 4 def show respond_to do |format| format.json { render_instance_variables } end end |
#update ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/admin/ci/variables_controller.rb', line 10 def update service = Ci::UpdateInstanceVariablesService.new(variables_params) if service.execute respond_to do |format| format.json { render_instance_variables } end else respond_to do |format| format.json { render_error(service.errors) } end end end |