Skip to content

Instantly share code, notes, and snippets.

@brianknapp
Created December 24, 2012 02:11
Show Gist options
  • Save brianknapp/4367147 to your computer and use it in GitHub Desktop.
Save brianknapp/4367147 to your computer and use it in GitHub Desktop.
Example Obvious Descriptor
Action: ExampleAction
Description: should do something awesome
Code:
- c: validate input
- c: set default id and values for new Thing entity
- c: create/populate Thing object
requires: Thing.populate
- c: save thing to jack
requires: ThingJack.save, Thing.to_hash
- c: return the result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment