Skip to content
  • Jonathan Hefner's avatar
    8ec7a2b7
    Isolate ARGV in Rails::Command.invoke · 8ec7a2b7
    Jonathan Hefner authored
    Follow-up to #38463.
    
    By isolating ARGV, we guard against commands inadvertently depending on
    prior ARGV contents.  Any such command will now behave consistently when
    run via `Rails::Command.invoke`, whether coming from the Rails CLI or
    from library code.  Likewise, any ARGV mutations done by a command will
    not affect code that executes after `Rails::Command.invoke`.
    8ec7a2b7
    Isolate ARGV in Rails::Command.invoke
    Jonathan Hefner authored
    Follow-up to #38463.
    
    By isolating ARGV, we guard against commands inadvertently depending on
    prior ARGV contents.  Any such command will now behave consistently when
    run via `Rails::Command.invoke`, whether coming from the Rails CLI or
    from library code.  Likewise, any ARGV mutations done by a command will
    not affect code that executes after `Rails::Command.invoke`.
Loading