aws / aws-sdk-ruby-record

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

Clean-up mutation tracking setup #113

Closed clowder closed 3 years ago

clowder commented 3 years ago

Similar to #112 including the [Record] module in a class would produce the following warning:

warning: instance variable @track_mutations not initialized

This was because we were trying to set a default value for @track_mutations in .included, creating an instance variable in the [Record] module rather than in our target class.

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