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

add class level instantiate method to mirror the #15

Closed abrandoned closed 10 years ago

abrandoned commented 10 years ago

ActiveRecord interface for instantiating a record that is not new

Also added an instance level readonly! and options hash to the class level instantiate so it can be marked as readonly on instantiation

allows single method instantiation of a remote model and instance level readonly-ness

@liveh2o

liveh2o commented 10 years ago

Looks good to me. It'll go out with the 1.8.0 release.