1. 09 2月, 2017 1 次提交
  2. 07 2月, 2017 7 次提交
  3. 06 2月, 2017 2 次提交
  4. 04 2月, 2017 4 次提交
  5. 03 2月, 2017 1 次提交
    • D
      Fix collection_singular_ids= bug · 796d8599
      Daniel Colson 提交于
      When the association's primary key is manually set as a symbol and called with an array of strings, CollectionAssociation#ids_writer
      fails to cast the ids to integers. This is because
      AssociationReflection#association_primary_key_type and
      ThroughReflection#association_primary_key_type return the incorrect
      type, since ModelSchema.type_for_attribute only accepts a string. The
      result is an ActiveRecord::RecordNotFound error.
      796d8599
  6. 02 2月, 2017 2 次提交
  7. 01 2月, 2017 2 次提交
  8. 31 1月, 2017 1 次提交
  9. 30 1月, 2017 1 次提交
  10. 29 1月, 2017 1 次提交
    • R
      Reload `through_record` that has been destroyed in `create_through_record` · e09da8bf
      Ryuta Kamizono 提交于
      This is an alternative of #27714.
      
      If `has_one :through` association has set `nil`, `through_record` is
      destroyed but still remain loaded target in `through_proxy` until
      `reload` or `reset` explicitly.
      
      If `through_proxy` is not reset (remain destroyed (frozen) target),
      setting new record causes `RuntimeError: Can't modify frozen hash`.
      
      To prevent `RuntimeError`, should reload `through_record` that has been
      destroyed in `create_through_record`.
      e09da8bf
  11. 25 1月, 2017 2 次提交
  12. 24 1月, 2017 1 次提交
  13. 19 1月, 2017 2 次提交
  14. 18 1月, 2017 4 次提交
  15. 17 1月, 2017 2 次提交
  16. 16 1月, 2017 3 次提交
  17. 15 1月, 2017 1 次提交
  18. 14 1月, 2017 2 次提交
    • E
      Fix pool_from_any_process to use most recent spec · e15a23fa
      eileencodes 提交于
      If a process is forked more than once, the pool was grabbing the oldest
      spec, not the most recent spec. This wasn't noticed before because most
      folks are lilely forking the process only once.
      
      If you're forking the process multiple times however the wrong spec name
      will be returned and an incorrect connection will be used for the
      process.
      
      This fixes the issue by reversing the list of spec names so we can grab
      the most recent spec rather than the oldest spec.
      e15a23fa
    • A
      Add the touch option to ActiveRecord#increment! and decrement! · bad9bfbe
      akihiro17 提交于
      Supports the `touch` option from update_counters.
      The default behavior is not to update timestamp columns.
      bad9bfbe
  19. 13 1月, 2017 1 次提交