I am looking at the first line of following rake task:
task :generate_course_group_progress_report => [:environment] do
Why is [:environment]
passed as the value of the hash as an array instead of :environment
? what does this do? This doesn't seem to break the task.
Is there a scenario where I would pass multiple variables to the hash, i.e [:environment, :something_else]
?