class Pettanr.Scroll extends Peta.Binder url: '/scrolls/' @singular: () -> 'Scroll' @plural: () -> 'Scrolls' defaults: { id: null, visible: 0 } author: () -> new Pettanr.Author({id: @get('author_id')}) overwrite: (options) -> operators = options.operators return false if not operators.author @set('author_id', operators.author.id) initialize: () -> if @id @url = @url + @id