active_remote
active_remote copied to clipboard
Active Remote provides Active Record-like object-relational mapping over RPC. It's Active Record for your platform.
Consider an API that publishes `Transaction#user_identifer` and `Transaction#account_identifer`. These fields are delegated to the associated user and account (respectively) because they are not part of the transaction model. This works,...
Unless the behavior changed in Active Record, calling `save` should be a no-op on a record that has not changed. The same should be true for calling `save` in Active...
This gem calls `write_attribute` which was removed from ActiveModel in Rails 6.1. We need to find a good alternative implementation.
I had to tweak some code and I don't fully understand the changes in Rails that made it necessary, but what I do know is that the private `write_attribute` method...
This adds filtered attributes for `#inspect`
Currently we have `.search`, which returns a (possibly empty) array of results, and we have `.find`, which returns a single result or raises `ActiveRemote::RemoteRecordNotFound`. We see a common pattern when...
If using an ActiveRemote object in a form and using `form_for` in Rails for the model, ActiveRemote causes an `undefined method 'guid' for` error to be raised.
I propose adding the following to the README and implementing the adapter described: ### RPC Adapter An RPC Adapter is responsible for gathering the attributes from your model and marshalling...
Adds Rails 7.0 support. Fixes some ruby 3.1 syntax bugs