1. 01 7月, 2017 1 次提交
  2. 07 8月, 2016 1 次提交
  3. 19 7月, 2016 1 次提交
  4. 28 6月, 2016 1 次提交
  5. 27 9月, 2015 1 次提交
  6. 25 9月, 2015 1 次提交
  7. 30 7月, 2015 1 次提交
    • S
      Cut string allocations in content_tag_string · e76a8435
      schneems 提交于
      content_tag's first argument is will generate a string with an html tag so `:a` will generate: `<a></a>`. When this happens, the symbol is implicitly `to_s`-d so a new string is allocated. We can get around that by using a frozen string instead which
      
      This change buys us 74,236 bytes of memory and 1,855 fewer objects per request.
      e76a8435
  8. 03 7月, 2015 1 次提交
  9. 14 6月, 2015 1 次提交
  10. 20 5月, 2015 1 次提交
  11. 03 5月, 2015 1 次提交
  12. 13 3月, 2015 2 次提交
  13. 29 11月, 2014 1 次提交
  14. 09 8月, 2014 1 次提交
  15. 29 7月, 2014 1 次提交
  16. 17 7月, 2014 1 次提交
  17. 31 3月, 2014 1 次提交
  18. 02 12月, 2013 1 次提交
  19. 25 11月, 2013 2 次提交
  20. 23 9月, 2013 2 次提交
  21. 07 8月, 2013 1 次提交
  22. 23 7月, 2013 2 次提交
  23. 22 7月, 2013 1 次提交
  24. 20 7月, 2013 1 次提交
  25. 28 6月, 2013 1 次提交
  26. 27 6月, 2013 1 次提交
  27. 26 6月, 2013 1 次提交
  28. 20 6月, 2013 1 次提交
  29. 07 5月, 2013 1 次提交
  30. 11 4月, 2013 1 次提交
  31. 31 3月, 2013 1 次提交
  32. 28 3月, 2013 1 次提交
    • B
      Revert grep to select since they are not the same · 1cc991be
      Brian McManus 提交于
      A previous commit swapped out a call to select for a call to grep in
      time_zone_options_for_select. This behavior actually causes the
      regexp priority option to stop working.
      
      ActiveSupport::TimeZone overrides the =~ operator which is what the
      select block was using previously. Enumerable#grep
      checks pattern === element and in this case that would be /US/ ===
      ActiveSupport::TimeZone which does not work because
      ActiveSupport::TimeZone does not supply an implicit converting to_str
      method, only an explicit to_s method.
      
      It would be impossible to provide a to_str method that behaves
      identically to the =~ method provided on ActiveSupport::TimeZone
      so the only option is to revert back to using select with =~.
      1cc991be
  33. 22 2月, 2013 2 次提交
  34. 20 2月, 2013 1 次提交
    • B
      Fix time_zone_options_for_select to not mutate TimeZones array · 5c73f0d3
      Brian McManus 提交于
      Previous implementation of time_zone_options_for_select did not dup the
      ActiveSupport::TimeZone.all array.  When :priority_zones were provided
      the method would reject! the zones from the memoized TimeZones array
      thus affecting future requests to the server.  Essentially whatever
      zones were specified as :priority_zones would show up for the first
      request but then disappear from the time zone options on future
      requests.
      5c73f0d3
  35. 01 2月, 2013 1 次提交