You may replace options: nil with options: [] should make the error goes way.
options: nil
options: []
Good luck !