Skip to content
  • Joel Ambass's avatar
    b48c2ade
    respect path_only option when an array is passed into url_for · b48c2ade
    Joel Ambass authored
    The url_for method is now extracting the path_only option in order to determine if polymorphic_path or polymorphic_url should be called.
    
    If the path_only option is not set it will be set to true unless the host option is set. This behaviour is the same as when a Hash or Params object is passed.
    
    To support this unifying the code responsible for setting this default value has been extracted into a private method
    b48c2ade
    respect path_only option when an array is passed into url_for
    Joel Ambass authored
    The url_for method is now extracting the path_only option in order to determine if polymorphic_path or polymorphic_url should be called.
    
    If the path_only option is not set it will be set to true unless the host option is set. This behaviour is the same as when a Hash or Params object is passed.
    
    To support this unifying the code responsible for setting this default value has been extracted into a private method
Loading