Open lisad opened 11 years ago
Note that I also tried to use the Rails3 ActiveRecord method "set_primary_key", but that seems not to be implemented in Dynamoid::Document.
(http://apidock.com/rails/ActiveRecord/AttributeMethods/PrimaryKey/ClassMethods/set_primary_key)
Hi Lisa,
That does, indeed sound like a bug. Any chance you can put together a pull request with a fix + the requisite spec?
I'm planning to contribute at some point but I'd like to get more of a feel for DynamoDB and Dynamoid first. I just started this week with both. We're also on a release deadline at work :)
In the ManyAssocation module, the method to add an item to an association assumes that the item's id field is called ':id'. Shouldn't it use the key field defined when the table is set up?
My code:
In the console:
The dynamoid ManyAssociation code with the hardcoded :id in the 1st line of the method: