Change clear channel to not do a find-all before deleting feeds.
This commit is contained in:
1 parent
4f0354303f
commit
94b73faf85
2 files changed
+7
-2
No files matched your search
@@ -38,7 +38,7 @@ class ChannelsController < ApplicationController
|
||||
# clear all data from a channel
|
||||
def clear
|
||||
channel = current_user.channels.find(params[:id])
|
||||
channel.feeds.delete_all
|
||||
channel.delete_feeds
|
||||
channel.update_attribute(:last_entry_id, nil)
|
||||
|
||||
redirect_to channels_path
|
||||
|
||||
Reference in new issue
Block a user