Skip to main content
100%

Gist 246048

✓ Published0🌍 Public
XXXX
Last edited Dec 1, 2009
Created on Dec 1, 2009

This example shows a Ruby code snippet that extends DataMapper’s Resource class with a custom method for saving attributes while handling update conflicts. The `save_attributes` method first attempts an `update`, and on catching a `DataMapper::UpdateConflictError`, it assigns the attributes and calls `save` as a fallback. The visualization displays the raw source code from a GitHub gist, using no graphical libraries—it presents the code text directly as the primary visual element, with the DataMapper API as the concrete framework referenced.

AI-generated description

Similar vizzes