Sha256: 25834288b11e5cc4f6c2f52fc822941e7e7dc299e5cbc237877ed56f78243b5e

Contents?: true

Size: 615 Bytes

Versions: 305

Compression:

Stored size: 615 Bytes

Contents

module Caboose
  class PostCustomFieldValuesController < ApplicationController
                
    # @route PUT /admin/post-custom-field-values/:id
    def admin_update      
      return if !user_is_allowed('postcustomfieldvalues', 'edit')
      
      resp = Caboose::StdClass.new
      fv = PostCustomFieldValue.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

305 entries across 305 versions & 1 rubygems

Version Path
caboose-cms-0.9.229 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-1.0.2 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-1.0.1 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.228 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.227 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.226 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.225 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.224 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.223 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.222 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.221 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.220 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.219 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.218 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.217 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.216 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.215 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.214 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.213 app/controllers/caboose/post_custom_field_values_controller.rb
caboose-cms-0.9.212 app/controllers/caboose/post_custom_field_values_controller.rb