Sha256: c7bcd68d9472c8f32bfa11e08a8dba1d7c97a3970bd80e6817eb16949654f8ed
Contents?: true
Size: 506 Bytes
Versions: 5
Compression:
Stored size: 506 Bytes
Contents
require 'reactive_record/server_data_cache' module ReactiveRecord class ReactiveRecordController < ApplicationController def fetch render :json => ReactiveRecord::ServerDataCache[params[:pending_fetches]] end def save render :json => ReactiveRecord::Base.save_records(params[:models], params[:associations]) end def destroy render :json => ReactiveRecord::Base.destroy_record(params[:model], params[:id], params[:vector]) end end end
Version data entries
5 entries across 5 versions & 1 rubygems