X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fmodels%2Fscroll_panel.rb;h=12fab0f6ad789ebc7ece2eae52b79d7773012337;hb=5e2817fe00fdbc16c4cd9e25dae4b7c93c7c4008;hp=44885a61910f5badd409e967fba3f551d99d4d42;hpb=f20e087a523621b9e3efc6778509267fc25e5a70;p=pettanr%2Fpettanr.git diff --git a/app/models/scroll_panel.rb b/app/models/scroll_panel.rb index 44885a61..12fab0f6 100644 --- a/app/models/scroll_panel.rb +++ b/app/models/scroll_panel.rb @@ -15,11 +15,9 @@ class ScrollPanel < Peta::Leaf end def overwrite operators - return false unless operators.author - self.author_id = operators.author.id end - def self.public_list_where + def self.public_list_where list 'scrolls.visible > 0' end