Sha256: 16139cec59f5ca2c40ad292b7f4c8faeab9126789dfb9410f61cbab7bdf47e6d

Contents?: true

Size: 547 Bytes

Versions: 9

Compression:

Stored size: 547 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)
    end
      
    def destroy
      render :json => ReactiveRecord::Base.destroy_record(params[:model], params[:id], params[:vector], acting_user)
    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
reactive-record-0.7.15 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.14 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.13 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.12 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.11 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.10 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.9 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.8 app/controllers/reactive_record/reactive_record_controller.rb
reactive-record-0.7.7 app/controllers/reactive_record/reactive_record_controller.rb