class Pettanr.Comic extends Peta.Binder @singular: () -> 'Comic' @plural: () -> 'Comics' defaults: { id: null, visible: 0, author_id: null } is_visible: (operators = Pettanr.cache.operators) -> switch super(operators) when null return true when false return false else @get('visible') > 0 overwrite: (options) -> operators = Pettanr.cache.operators return false if not operators.author @set('author_id', operators.author.id) symbol_filename: () -> initialize: (attr = {}, options = {}) -> super(attr, options)