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

View File

@@ -25,4 +25,4 @@ namespace :nginx do
end
end
end
end
end

View File

@@ -16,7 +16,7 @@ namespace :images do
upload.generate_resizes(post.file_path)
post.distribute_files
end
desc "Generate thumbnail-sized images of posts"
task :generate_preview => :environment do
width = 150
@@ -33,7 +33,7 @@ namespace :images do
end
end
end
desc "Generate large-sized images of posts"
task :generate_large => :environment do
post_id = ENV["id"]
@@ -51,4 +51,3 @@ namespace :images do
end
end
end

9
lib/tasks/iqdb.rake Normal file
View File

@@ -0,0 +1,9 @@
namespace :iqdb do
task reindex_posts: :environment do
STDIN.each_line do |post_id|
puts post_id
post.remove_iqdb_async
post.update_iqdb_async
end
end
end