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