1. 22 6月, 2013 1 次提交
  2. 29 5月, 2013 1 次提交
  3. 28 5月, 2013 1 次提交
  4. 03 5月, 2013 1 次提交
  5. 23 4月, 2013 1 次提交
  6. 11 4月, 2013 1 次提交
  7. 03 4月, 2013 1 次提交
  8. 22 3月, 2013 1 次提交
  9. 20 3月, 2013 1 次提交
  10. 15 3月, 2013 1 次提交
    • Y
      rename `Relation#uniq` to `Relation#distinct`. `#uniq` still works. · a1bb6c8b
      Yves Senn 提交于
      The similarity of `Relation#uniq` to `Array#uniq` is confusing. Since our
      Relation API is close to SQL terms I renamed `#uniq` to `#distinct`.
      
      There is no deprecation. `#uniq` and `#uniq!` are aliases and will continue
      to work. I also updated the documentation to promote the use of `#distinct`.
      a1bb6c8b
  11. 05 3月, 2013 1 次提交
  12. 04 3月, 2013 3 次提交
  13. 26 2月, 2013 1 次提交
  14. 25 2月, 2013 1 次提交
  15. 21 2月, 2013 3 次提交
  16. 20 2月, 2013 2 次提交
  17. 08 2月, 2013 3 次提交
  18. 25 1月, 2013 1 次提交
  19. 09 12月, 2012 1 次提交
    • C
      Improve where.not docs [ci skip] · 7d42317e
      Carlos Antonio da Silva 提交于
      * Fix example queries
      * Remove doc entries of where.like/not_like.
      * Remove :chain from where.not related docs. To me that's an implementation
        detail and we don't expect people to use where(:chain).not.
      7d42317e
  20. 08 12月, 2012 2 次提交
    • C
      Rollback where.like and where.not_like · 8d02afea
      Carlos Antonio da Silva 提交于
      The real win with these chain methods is where.not, that takes care of
      different scenarios in a graceful way, for instance when the given value
      is nil.
      
          where("author.id != ?", author_to_ignore.id)
          where.not("author.id", author_to_ignore.id)
      
      Both where.like and where.not_like compared to the SQL versions doesn't
      seem to give us that much:
      
          Post.where("title LIKE 'ruby on%'")
          Post.where.like(title: 'ruby on%'")
          Post.where("title NOT LIKE 'ruby on%'")
          Post.where.not_like(title: 'ruby on%'")
      
      Thus Rails is adding where.not, but not where.like/not_like and others.
      8d02afea
    • C
      Document the types of arguments accepted by AR#not · bb53c60f
      claudiob 提交于
      This commit stems from https://github.com/rails/rails/pull/8332#issuecomment-11127957
      
      Since the formats in which conditions can be passed to `not` differ
      from the formats in which conditions can be passed to `like` and `not_like`,
      then I think it's worth adding rdoc and tests to show this behavior
      bb53c60f
  21. 07 12月, 2012 3 次提交
  22. 30 11月, 2012 2 次提交
  23. 10 11月, 2012 1 次提交
  24. 05 11月, 2012 1 次提交
  25. 29 10月, 2012 1 次提交
  26. 16 10月, 2012 1 次提交
  27. 13 10月, 2012 2 次提交
  28. 12 10月, 2012 1 次提交