Created
April 25, 2013 00:18
-
-
Save kevindjacobson/5456641 to your computer and use it in GitHub Desktop.
Unusual behavior in the Zendesk Ruby Api Gem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> ticket.changed? | |
=> false | |
>> ticket.tags | |
=> ["account"] | |
>> ticket.tags += ['updated_by_scribd_loop'] # HERE'S WHERE I ADD THE TAG! | |
=> ["account", "updated_by_scribd_loop"] | |
>> ticket.tags | |
=> ["account", "updated_by_scribd_loop"] | |
>> ticket.changed? # YEP | |
=> true | |
>> ticket.changes | |
=> #<Hashie::Mash tags=["account", "updated_by_scribd_loop"]> #YEP! | |
>> ticket.save | |
=> true | |
>> ticket.changes #Great! My changes saved! | |
=> #<Hashie::Mash> | |
>> ticket.changed? | |
=> false | |
>> ticket.tags | |
=> ["account"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment