1
2
3
4
5
6
7
|
desc "Given MODELS=Foo,Bar,Baz find all instances in the DB and save to sanitize existing records"
task :xss_terminate => :environment do
models = ENV['MODELS'].split(',')
models.each do |model|
model.constantize.all.map(&:save)
end
end
|