I have a rake task that uses a parameter on the command line like that:
rake sunspot:reindex[, MyModel]
(Yes, the direct comma behind the bracket is correct.)
How do I specify the same rake command from within Ruby?
Some attempts that don't work:
Rake::Task['sunspot:reindex'].execute("[, ActsAsTaggableOn::Tagging]")
Rake::Task['sunspot:reindex'].execute([nil, ActsAsTaggableOn::Tagging])
Rake::Task['sunspot:reindex[, ActsAsTaggableOn::Tagging]'].execute
Some other suggestions what I could try else?