Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Remove unnecessary require in YAML JSON backend

#2687

In yaml.rb (the YAML JSON backend), 'active_support/core_ext/string/starts_ends_with' is required but not used.

Just need to delete that line :)

Impossibly trivial but I spotted this while working on a patch.

Reported by Cheah Chu Yeow · May 21st, 2009 @ 11:12 AM

State: invalid
Milestone: 2.x
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to invalid
    
    53:                if ustr.start_with?('u')
    69:                  if ustr.start_with?('u')
    

    String#start_with? is present in 1.8.7 and later; Active Support provides a forward-compatibility shim for older versions.

    May 21st, 2009 @ 05:56 PM