liveh2o / active_remote

Active Remote provides Active Record-like object-relational mapping over RPC. It's Active Record for your platform.
MIT License
63 stars 23 forks source link

check for existence of primary key is to_key #80

Closed mogman1 closed 4 years ago

mogman1 commented 4 years ago

Resolves https://github.com/liveh2o/active_remote/issues/79

ActiveModel first checks to make sure that the primary key field responds to messages (see https://github.com/rails/rails/blob/5-2-stable/activemodel/lib/active_model/conversion.rb#L60), the same should probably happen here.