rubocop: fix various style issues.

This commit is contained in:
evazion
2019-12-22 16:21:58 -06:00
parent 09f6a84660
commit 309821bf73
288 changed files with 912 additions and 962 deletions

2
script/fixes/048_remove_expunged_favorites.rb Normal file → Executable file
View File

@@ -5,7 +5,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config',
CurrentUser.user = User.system
CurrentUser.ip_addr = "127.0.0.1"
ModAction.without_timeout do
ModAction.without_timeout do
ModAction.where(creator_id: 1).where("created_at > ? and description like ?", "2017-07-18", "permanently deleted post%").find_each do |ma|
post_id = ma.description.scan(/\d+/).first
puts "deleting favorites for #{post_id}"