Sha256: 0d6f7f66fec907aff41235c33f05ee41f2c169bf7776209f55e7b2dc1facc394

Contents?: true

Size: 548 Bytes

Versions: 6

Compression:

Stored size: 548 Bytes

Contents

require 'reactive_record/server_data_cache'

module ReactiveRecord

  class ReactiveRecordController < ::ApplicationController

    def fetch
      render :json => ReactiveRecord::ServerDataCache[params[:pending_fetches], acting_user]
    end


    def save
      render :json => ReactiveRecord::Base.save_records(params[:models], params[:associations], acting_user, params[:validate])
    end

    def destroy
      render :json => ReactiveRecord::Base.destroy_record(params[:model], params[:id], params[:vector], acting_user)
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
reactive-record-0.7.22 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.20 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.19 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.18 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.17 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.16 app/controllers/reactive_record/reactive_record_controller.rb