core/rails/app/controllers/application_controller.rb
# formats API for delete
# using this makes it easier to update the API format for all models
formats API for delete
using this makes it easier to update the API format for all models
formats API for delete using this makes it easier to update the API format for all models
def api_delete(o)
    return {:json => {
        :message => I18n.t('api.deleted', :id=>o.id, :obj=>type2name(o))
      },
      :content_type=>cb_content_type(o, "empty")
    }
  end
def api_delete ( o ) return { :json => { :message => I18n . t ( 'api.deleted' , :id => o . id , :obj => type2name ( o ) ) } , :content_type => cb_content_type ( o , "empty" ) } end
formats API for delete
using this makes it easier to update the API format for all models
formats API for delete using this makes it easier to update the API format for all models
o
<not_specific>