Skip to content
  • HParker's avatar
    9a2f63ac
    avoid calling custom_encoding_for when unused · 9a2f63ac
    HParker authored
    if the action does not use a custom encoding, then we can skip checking if we need to fix the encoding on any of the parameters.
    
    Instead of asking the controller about each of the parameters, we can ask the controller to tell us what params to convert once. If the controller returns nothing, we have no work to do.
    9a2f63ac
    avoid calling custom_encoding_for when unused
    HParker authored
    if the action does not use a custom encoding, then we can skip checking if we need to fix the encoding on any of the parameters.
    
    Instead of asking the controller about each of the parameters, we can ask the controller to tell us what params to convert once. If the controller returns nothing, we have no work to do.
Loading