Sha256: f65fd4b88d9d8f578d4b3ad1a35f1859d7af4f668d362010b0630846d7ae3979

Contents?: true

Size: 618 Bytes

Versions: 100

Compression:

Stored size: 618 Bytes

Contents

module Caboose
  class EventCustomFieldValuesController < ApplicationController
                
    # @route PUT /admin/event-custom-field-values/:id
    def admin_update      
      return if !user_is_allowed('eventcustomfieldvalues', 'edit')
      
      resp = Caboose::StdClass.new
      fv = EventCustomFieldValue.find(params[:id])
      
      save = true
      params.each do |k, v|    
        case k            
          when 'value' then fv.value                = v                            
        end
      end
      resp.success = save && fv.save      
      render :json => resp
    end
  
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
caboose-cms-0.9.190 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.189 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.188 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.187 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.186 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.185 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.184 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.183 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.182 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.181 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.180 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.179 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.178 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.177 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.176 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.175 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.174 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.173 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.172 app/controllers/caboose/event_custom_field_values_controller.rb
caboose-cms-0.9.171 app/controllers/caboose/event_custom_field_values_controller.rb