• Markus Koller's avatar
    Make checks for continue_params more robust · 8fd2c084
    Markus Koller authored
    The check for continue_params&.key?(:to) in Projects::ImportsController
    caused an exception in redirect_to if this key contained a nil value.
    
    Since url_for won't add any params for an empty hash, we can just return
    that in continue_params if params[:continue] isn't present, and simplify
    the code in the controllers to check for the values we actually want to
    use.
    8fd2c084
forks_controller.rb 2.14 KB