before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
else
- before_filter :authenticate_reader, :only => [:top, :index, :show, :play, :scroll_panels, :panels, :by_author, :by_panel]
+ before_filter :authenticate_reader, :only => [:top, :index, :show, :play, :by_author, :by_panel]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
end
public_list
end
- def scroll_panels
- has_many_list
- end
-
- def panels
- has_many_list
- end
-
def by_author
filter_list
end
end
end
+ def scroll_panels_count
+ has_many_list
+ end
+
+ def panels_count
+ has_many_list
+ end
+
+ def count_by_author
+ filter_list
+ end
+
+ def count_by_panel
+ filter_list
+ end
+
def new
@scroll = Scroll.new
@scroll.supply_default