1. 26 5月, 2014 1 次提交
  2. 24 5月, 2014 1 次提交
  3. 23 5月, 2014 2 次提交
  4. 20 5月, 2014 1 次提交
  5. 13 5月, 2014 4 次提交
  6. 11 5月, 2014 2 次提交
  7. 09 5月, 2014 1 次提交
  8. 07 5月, 2014 1 次提交
    • X
      several enhancements to humanize [closes #12288] · daaa21bc
      Xavier Noria 提交于
      * Strips leading underscores.
      * Changes some unnecessary gsub!s to sub!s.
      * Replaces some anchors ^, $ with \A, \z.
      * Documents that human inflection rules are applied.
      * Documents that words are downcased except acronyms.
      * Adds an example with an acronym.
      * Rewords docs.
      daaa21bc
  9. 05 5月, 2014 1 次提交
  10. 03 5月, 2014 1 次提交
  11. 26 4月, 2014 1 次提交
  12. 19 4月, 2014 4 次提交
  13. 16 4月, 2014 1 次提交
    • A
      Object#duplicable? · e120d212
      Akshay Vishnoi 提交于
      1. Improve tests
      2. Remove unnecessary constant
      3. Add docs for BigDecimal#duplicable?
      e120d212
  14. 13 4月, 2014 1 次提交
  15. 11 4月, 2014 1 次提交
  16. 09 4月, 2014 2 次提交
    • E
      Fixed problem where `1.day.eql?(1.day)` is false · 5aeb3cd3
      Emily Dobervich 提交于
      This fixes:
          1.second.eql?(1.second) #=> false
      
      The new `eql?` requires that `other` is an `ActiveSupport::Duration`.
      This requirement makes `ActiveSupport::Duration`'s behavior consistent
      with other numeric types in Ruby.
      
          1.eql?(1.0) #=> false
          1.0.eql?(1) #=> false
      
          1.second.eql?(1) #=> false (was true)
          1.eql?(1.second) #=> false
      
          { 1 => "foo", 1.0 => "bar" }
          #=> { 1 => "foo", 1.0 => "bar" }
      
          { 1 => "foo", 1.second => "bar" }
          # now => { 1 => "foo", 1.second => "bar" }
          # was => { 1 => "bar" }
      
      And though the behavior here hasn't changed, for reference:
      
          1 == 1.0 #=> true
          1.0 == 1 #=> true
      
          1 == 1.second #=> true
          1.second == 1 #=> true
      5aeb3cd3
    • D
      7901ae13
  17. 04 4月, 2014 1 次提交
  18. 03 4月, 2014 1 次提交
  19. 02 4月, 2014 1 次提交
  20. 01 4月, 2014 1 次提交
  21. 28 3月, 2014 1 次提交
  22. 20 3月, 2014 1 次提交
  23. 17 3月, 2014 1 次提交
  24. 15 3月, 2014 1 次提交
  25. 08 3月, 2014 1 次提交
  26. 05 3月, 2014 1 次提交
    • G
      Revert "Merge pull request #14269 from arthurnn/expanded_key_array" · ccf8f27d
      Godfrey Chan 提交于
      This reverts commit 475c9658, reversing
      changes made to 705915ab.
      
      We decided that this is not worth busting everyone's cache as this
      seems like a very unlikely problem. The problem only occurs when the
      user is 1) not using a namespace, or 2) using the same namesapce for
      different *kinds* of cache items. The recommended "fix" is to put
      those cache items into their own namspace:
      
          id = 1
          Rails.cache.fetch(id, namespace: "user"){ User.find(id) }
      
          ids = [1]
          Rails.cache.fetch(ids, namespace: "users"){ User.find(ids) }
      
      See the discussion on #14269 for details.
      ccf8f27d
  27. 04 3月, 2014 1 次提交
  28. 03 3月, 2014 1 次提交
  29. 27 2月, 2014 1 次提交
    • P
      Return a hash rather than array from fetch_multi · c046e609
      Parker Selbert 提交于
      The current implementation of `fetch_multi` returns an array and has no
      means to easily backtrack which names yielded which results. By changing
      the return value to a Hash we retain the name information. Hash#values
      can be used on the response if only the values are needed.
      c046e609
  30. 24 2月, 2014 2 次提交