Last active
December 18, 2015 13:29
-
-
Save BlakeMesdag/5790471 to your computer and use it in GitHub Desktop.
BaconTracker Bacon model
This file contains 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
class BaconTracker.Bacon extends Batman.Model | |
@resourceName: 'bacon' | |
@persist Batman.RailsStorage | |
@encode 'name', 'quantity' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original code for this guide: BaconTracker – Getting Started with Batman.js and Rails 4