ruby-hyperloop / hyper-mesh

The project has moved to Hyperstack!! - Synchronization of active record models across multiple clients using Pusher, ActionCable, or Polling
https://hyperstack.org/
MIT License
22 stars 12 forks source link

add to_key method #61

Open catmando opened 6 years ago

catmando commented 6 years ago
class ActiveRecord::Base 
  def to_key
    backing_record.object_id
  end
end

See https://github.com/ruby-hyperloop/hyper-react/issues/244 for details

catmando commented 6 years ago

you would actually add the method to InstanceMethods module

sfcgeorge commented 6 years ago

Can be closed?