hyper-mesh
hyper-mesh copied to clipboard
The project has moved to Hyperstack!! - Synchronization of active record models across multiple clients using Pusher, ActionCable, or Polling
just a handy helper to add the ActiveRecordBase (on the client) (it would jus be added to InstanceMethods module) ```ruby def html_attr_name(attr) "#{model_name}#{to_key}-#{attr}" end ``` See https://github.com/ruby-hyperloop/hyper-react/issues/244 for details on...
so that for debug, logging, etc purposes you can define it yourself. ```ruby module ReactiveRecord def self.on_fetch_error(e, params) # do whatever you need to end end ```
```ruby class ApplicationRecord < ActiveRecord::Base do_not_synchronize end ```
I defined a method on my model: ```ruby server_method :past_due? do ... end ``` Nothing is broken on the client, but I get this message: ```javascript Warning: Deprecated feature used...
after that see test case in batch3/edge_cases.rb (line 54 approx)
A bug was discovered in staging and production environments only, pre-rendering was breaking with the error `RuntimeError (HyperModel fetching records failed, exception caught when applying ["find_by_nickname", "adamcreekroad"] to db object...
Validations being server only is ok as you have single source of truth, and saving is so fast and easy you can display feedback pretty quick, the errors come through...
active record allows you to push and build on a scope, and the attributes will be automatically filled in to match the scope. This is probably doable by doing something...
I have a policy specifying `send_only`. It works as expected on fetch, execute_remote returns only the specified attributes. But on creating a new record, execute_remote returns the full record with...