aws / aws-record-ruby

Official repository for the aws-record gem, an abstraction for Amazon DynamoDB.
Apache License 2.0
321 stars 42 forks source link

Support inheritance #124

Closed jterapin closed 2 years ago

jterapin commented 2 years ago

Issue #, if available: https://github.com/aws/aws-sdk-ruby-record/issues/80

Description of changes: Aws::Record models store information on class instance variables which are NOT inherited when a class is extended - this means that if a user extends an Aws::Record model class, none of the attributes/configuration will be inherited. This PR will support inheritance and allow models to be extended.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.