README.md in tracker_api-1.5.0 vs README.md in tracker_api-1.6.0

- old
+ new

@@ -48,10 +48,11 @@ project.stories(filter: 'requester:OWK label:"jedi stuff"') # Get all stories that match the given filters project.create_story(name: 'Destroy death star') # Create a story with the name 'Destroy death star' story = project.story(847762630) # Find a story with the given ID story.activity # Get a list of all the activity performed on this story +story.transitions # Get a list of all the story transitions on this story story.name = 'Save the Ewoks' # Update a single story attribute story.attributes = { name: 'Save the Ewoks', description: '...' } # Update multiple story attributes story.add_label('Endor') # Add a new label to an existing story story.save # Save changes made to a story @@ -101,10 +102,15 @@ This will cause coercion and dirty tracking to be bypassed and the new label will not be saved. ```ruby story = project.story(847762630) label = TrackerApi::Resources::Label.new(name: 'Special Snowflake') +# BAD story.labels << label +story.save + +# GOOD +story.labels = story.labels.dup.push(label) story.save ``` ## TODO