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
I have a model School that has_many :subjects, class_name: "SchoolSubject" and a validates_presence_of :subjects. It is impossible to save via Hyperloop! In the old Rails form using accept_nested_attributes_for it works...
A front end query like `Customer.all.count` will always succeed regardless of policies. I guess this is because policies apply to instances of models that have an `id` to check, but...
@sfcgeorge wrote: Concerns using ActiveSupport::Concern don't work because that module doesn't exist in Opal/ActiveSupport. I tried copy pasting the file but a bug in Opal meant that the way ActiveSupport::Concern...
Code examples below simplified from real app experiencing the issue. I have an input component where the RR attribute isn't rendered directly to allow valid data to be entered before...
Named parameters on scopes don't seem to be supported by hyper-mesh, it complains about the number of arguments. ```ruby # works scope(:mark_viewed_by, lambda do |user, recruitment| end) # errors scope(:mark_viewed_by,...
Reported that they might not work, so at least add a test case to make sure they do.
Then if you change the attribute to fix the validation error but the change happens to put the record back to its original unchanged state then the errors aren't cleared...
We need within the server method declaration, a way to indicate what data the method depends on so that during a sync, the method can be updated if necessary.
If single table inheritance is used on the back end, hyper-mesh won't instantiate the correct subclass, only ever the parent class. ```ruby # field.string :type class User < ActiveRecord def...
First off we need some examples in order to discuss the problem. The basic thought is that there are many cases where one component updates a record's attribute, but other...