Created
          October 12, 2012 01:32 
        
      - 
      
- 
        Save techwraith/3876845 to your computer and use it in GitHub Desktop. 
  
    
      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
    
  
  
    
  | var Item = function () { | |
| this.defineProperties({ | |
| name: {type: 'string'} | |
| }); | |
| this.findByName = function (name, callback) { | |
| geddy.model.Item.all({name: name}, callback); | |
| } | |
| } | |
| Item.findByName = function (name, callback) { | |
| geddy.model.Item.all({name: name}, callback); | |
| // would this work? | |
| // this.all({name: name}, callback); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment