1. 17 12月, 2011 1 次提交
  2. 16 12月, 2011 6 次提交
  3. 15 12月, 2011 4 次提交
  4. 14 12月, 2011 4 次提交
    • J
      Stop the build asploding on 1.8.7 · 19bea9f1
      Jon Leighton 提交于
      19bea9f1
    • J
      Add return for 1.8.7 · 665ef116
      Jon Leighton 提交于
      665ef116
    • J
      Unfluff the CI. · 3ab49f87
      Jon Leighton 提交于
      With transactional fixtures enabled, the session records would end up in
      @_current_transaction_records, and at the end of the transaction,
      methods would be called on them that would trigger method_missing and
      trigger attribute methods to be generated.
      
      However, at this point the sessions table would not exist, and the
      columns were not cached, so an exception would be raised because we
      can't find the columns to generate attribute methods for.
      
      Not sure exactly why this didn't crop up before but there have been
      changes to the schema cache code and perhaps that means that column data
      that was cached previously at that point is now uncached.
      3ab49f87
    • J
      Revert naive O(1) table_exists? implementation. · 38703ac8
      Jon Leighton 提交于
      It was a bad idea to rescue exceptions here. This can interfere with
      transaction rollbacks which seems to be the cause of current CI
      failure.
      
      Instead, each adapter should implement its own DB-specific O(1)
      implementation, and we fall back on the generic, slower, implementation
      otherwise.
      38703ac8
  5. 11 12月, 2011 1 次提交
  6. 10 12月, 2011 2 次提交
  7. 09 12月, 2011 8 次提交
  8. 08 12月, 2011 3 次提交
  9. 07 12月, 2011 2 次提交
  10. 05 12月, 2011 3 次提交
    • O
      Do not validate associated records marked for destruction · a8134ace
      Olek Janiszewski 提交于
      The main reason for this change is to fix a bug where
      `validates_associated` would prevent `accepts_nested_attributes_for`
      with `allow_destroy: true` from destroying invalid associated records.
      a8134ace
    • X
      implements a much faster auto EXPLAIN, closes #3843 [José Valim & Xavier Noria] · cfeac38e
      Xavier Noria 提交于
      This commit vastly reduces the impact of auto
      explain logging when enabled, while keeping
      a negligible cost when disabled.
      
      The first implementation was based on the idea
      of subscribing to "sql.active_record" when
      needed, and unsubscribing once done. This is
      the idea behind AR::Relation#explain. Subscribe,
      collect, unsubscribe.
      
      But with the current implementation of notifications
      unsubscribing is costly, because it wipes an internal
      cache and that puts a penalty on the next event.
      
      So we are switching to an approach where a long-running
      subscriber is listening. Instead of collecting the
      queries with a closure in a dedicated subscriber, now
      we setup a thread local.
      
      If the feature is disabled by setting the threshold
      to nil, the subscriber will call a method that does
      nothing. That's totally cheap.
      cfeac38e
    • E
      Fix sequence name with abstract classes. · 82ae5c40
      Edgars Beigarts 提交于
      82ae5c40
  11. 04 12月, 2011 3 次提交
  12. 03 12月, 2011 2 次提交
  13. 02 12月, 2011 1 次提交