Method: Elabs::Admin::LicensesController#update
- Defined in:
- app/controllers/elabs/admin/licenses_controller.rb
#update ⇒ Object
PATCH/PUT /licenses/1 PATCH/PUT /licenses/1.json
42 43 44 45 46 47 48 49 50 51 52 |
# File 'app/controllers/elabs/admin/licenses_controller.rb', line 42 def update respond_to do |format| if @license.update(license_params) format.html { redirect_to admin_licenses_url, notice: _('License was successfully updated.') } format.json { render '_license', status: :ok, location: @license, locals: { license: @license } } else format.html { render :edit } format.json { render json: @license.errors, status: :unprocessable_entity } end end end |