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