X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fsheet.js.coffee;h=240d5d3d3858b3752deb841b66659aca752c36c0;hb=cc2dbf353c285c78423a8a29d7adf233e1651c6e;hp=6feae70455f0ba965ca87ebb14106e16adb6dee1;hpb=3f0b76f7b7fddc70ba3badd2a97b2babe9549b79;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/models/sheet.js.coffee b/app/assets/javascripts/models/sheet.js.coffee index 6feae704..240d5d3d 100644 --- a/app/assets/javascripts/models/sheet.js.coffee +++ b/app/assets/javascripts/models/sheet.js.coffee @@ -14,14 +14,14 @@ class Pettanr.Sheet extends Peta.Root } author: () -> - new Pettanr.Author({id: @get('author_id')}) + new Pettanr.Cache.Retriever(Pettanr.Author, @get('author_id')) overwrite: (options) -> - operators = options.operators + operators = Pettanr.cache.operators return false if not operators.author @set('author_id', operators.author.id) - is_visible: (operators) -> + is_visible: (operators = Pettanr.cache.operators) -> switch super(operators) when null return true