1. 01 11月, 2014 1 次提交
  2. 29 10月, 2014 1 次提交
    • X
      let's warn with heredocs · b3bfa361
      Xavier Noria 提交于
      The current style for warning messages without newlines uses
      concatenation of string literals with manual trailing spaces
      where needed.
      
      Heredocs have better readability, and with `squish` we can still
      produce a single line.
      
      This is a similar use case to the one that motivated defining
      `strip_heredoc`, heredocs are super clean.
      b3bfa361
  3. 27 10月, 2014 1 次提交
  4. 20 10月, 2014 1 次提交
  5. 11 9月, 2014 1 次提交
  6. 05 9月, 2014 1 次提交
  7. 29 8月, 2014 1 次提交
    • G
      Avoid using heredoc for user warnings · 8c52480b
      Godfrey Chan 提交于
      Using heredoc would enforce line wrapping to whatever column width we decided to
      use in the code, making it difficult for the users to read on some consoles.
      
      This does make the source code read slightly worse and a bit more error-prone,
      but this seems like a fair price to pay since the primary purpose for these
      messages are for the users to read and the code will not stick around for too
      long.
      8c52480b
  8. 19 8月, 2014 1 次提交
  9. 14 8月, 2014 1 次提交
  10. 24 5月, 2014 1 次提交
  11. 23 5月, 2014 1 次提交
  12. 25 4月, 2014 1 次提交
  13. 22 4月, 2014 1 次提交
  14. 08 4月, 2014 1 次提交
    • L
      Build the reverse_order on its proper method. · 6c311e0b
      Lauro Caetano 提交于
      The reverse_order method was using a flag to control if the order should
      be reversed or not. Instead of using this variable just build the reverse order
      inside its proper method.
      
      This implementation was leading to an unexpected behavior when using
      reverse_order and then applying reorder(nil).
      
      Example:
        Before
          Post.order(:name).reverse_order.reorder(nil)
          # => SELECT "posts".* FROM "posts"   ORDER BY "posts"."id" DESC
      
        After
          Post.order(:name).reverse_order.reorder(nil)
         # => SELECT "posts".* FROM "posts"
      6c311e0b
  15. 18 3月, 2014 1 次提交
  16. 17 3月, 2014 1 次提交
  17. 15 3月, 2014 1 次提交
  18. 05 3月, 2014 3 次提交
  19. 01 3月, 2014 1 次提交
  20. 17 2月, 2014 2 次提交
  21. 02 2月, 2014 1 次提交
    • R
      Make arel methods private API · cd93d717
      Rafael Mendonça França 提交于
      Since its conception arel was made to be private API of Active Record.
      If users want to use arel features directly we should provide a way
      using the Active Record API without exposing the arel implementation.
      cd93d717
  22. 31 1月, 2014 1 次提交
  23. 30 1月, 2014 1 次提交
    • Y
      docs, `references` is only used with `includes`. Closes #13727. · 9632c986
      Yves Senn 提交于
      There is no gain in `referencing` tables that are not used for preloading.
      Furthermore it will break if polymorphic associations are invloved. This
      is because `references_eager_loaded_tables?` uses all `reference_values`
      to decide wether to `eager_load` or `preload`.
      9632c986
  24. 29 1月, 2014 1 次提交
  25. 27 1月, 2014 1 次提交
    • W
      Display value when raising due to unscope() issues · 8b14b114
      Washington Luiz 提交于
      Hopefully make it easier to debug errors. e.g
      
      Before:
      
          RuntimeError:
             unscope(where: "deleted_at") failed: unscoping String is unimplemented.
      
      After:
      
          RuntimeError:
             unscope(where: "deleted_at") failed: unscoping String "'t'='t'" is unimplemented.
      8b14b114
  26. 22 1月, 2014 1 次提交
    • Y
      prepend table name for `Relation#select` columns. · e011258c
      Yves Senn 提交于
      This fixes a bug where `select(:id)` combined with `joins()` raised:
      
      ```
      ActiveRecord::StatementInvalid: SQLite3::SQLException: ambiguous column name: id:
      SELECT  id, authors.author_address_id
      FROM "posts"
      INNER JOIN "authors"
      ON "authors"."id" = "posts"."author_id"
      ORDER BY posts.id LIMIT 3
      ```
      
      The `select_values` are still String and Symbols because other parts (mainly calculations.rb)
      rely on that fact.
      
      /cc @tenderlove
      e011258c
  27. 18 1月, 2014 1 次提交
  28. 16 1月, 2014 1 次提交
  29. 15 1月, 2014 5 次提交
  30. 14 1月, 2014 4 次提交