mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
8 lines
225 B
CoffeeScript
8 lines
225 B
CoffeeScript
|
CocoCollection = require './CocoCollection'
|
||
|
Product = require 'models/Product'
|
||
|
|
||
|
module.exports = class Products extends CocoCollection
|
||
|
model: Product
|
||
|
url: '/db/products'
|
||
|
|
||
|
getByName: (name) -> @findWhere { name: name }
|