1. 15 1月, 2016 4 次提交
  2. 14 1月, 2016 2 次提交
  3. 13 1月, 2016 4 次提交
    • Y
      fix regression when loading fixture files with symbol keys. · ede23430
      Yves Senn 提交于
      Closes #22584.
      ede23430
    • R
      Improve error message for #or when it is structurally incompatible · f466cd7f
      Rafael Mendonça França 提交于
      When you are using scopes and you chaining these scopes it is hard to
      know which are the values that are incompatible. This way you can read
      the message and know for which values you need to look for.
      
      [Herminio Torres]
      f466cd7f
    • S
      Revert "Change `WhereClause#merge` to same named columns on diff tables" · b64b7545
      Sean Griffin 提交于
      This reverts commit 5d41cb3b.
      
      This implementation does not properly handle cases involving predicates
      which are not associated with a bind param. I have the fix in mind, but
      don't have time to implement just yet. It will be more similar to #22823
      than not.
      b64b7545
    • S
      Change `WhereClause#merge` to same named columns on diff tables · 5d41cb3b
      Sean Griffin 提交于
      While the predicates are an arel equality node where the left side is a
      full arel attribute, the binds just have the name of the column and
      nothing else. This means that while splitting the predicates can include
      the table as a factor, the binds cannot. It's entirely possible that we
      might be able to have the bind params carry a bit more information (I
      don't believe the name is used for anything but logging), and that is
      probably a worthwhile change to make in the future.
      
      However the simplest (and likely slightly faster) solution is to simply
      use the indices of the conflicts in both cases. This means that we only
      have to compute the collision space once, instead of twice even though
      we're doing an additional array iteration. Regardless, this method isn't
      a performance hotspot.
      
      Close #22823.
      
      [Ben Woosley & Sean Griffin]
      5d41cb3b
  4. 12 1月, 2016 5 次提交
  5. 11 1月, 2016 2 次提交
  6. 10 1月, 2016 4 次提交
  7. 09 1月, 2016 7 次提交
  8. 08 1月, 2016 8 次提交
  9. 07 1月, 2016 2 次提交
  10. 06 1月, 2016 2 次提交
    • S
      [close #22917] Don't output to `STDOUT` twice · 3d10d9d6
      schneems 提交于
      When `rails console` or `rails server` are used along with a logger set to output to `STDOUT` then the contents will show up twice. This happens because the logger is extended with `ActiveSupportLogger.broadcast` with a destination of STDOUT even if it is already outputting to `STDOUT`.
      
      Previously PR #22592 attempted to fix this issue, but it ended up causing NoMethodErrors. A better approach than relying on adding a method and flow control is to inspect the log destination directly. For this `ActiveSupport::Logger.logger_outputs_to?` was introduced
      
      ```ruby
      logger = Logger.new(STDOUT)
      ActiveSupport::Logger.logger_outputs_to?(logger, STDOUT)
      # => true
      ```
      
      To accomplish this we must look inside of an instance variable of standard lib's Logger `@logdev`. There is a related Ruby proposal to expose this method in a standard way: https://bugs.ruby-lang.org/issues/11955
      3d10d9d6
    • L