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

Can't create AR records from within Rake Tasks #20

Closed catmando closed 7 years ago

catmando commented 7 years ago

Similar problem to running in console.

However code is currently using on_console? method. Change this to be on_server? checking definition of Rails::Server instead of Rails::Console.

This should allow any changes to DB from any version of the rails app, and still get notification that the records change.