Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Oct 5, 2012
  1. @senny
Commits on Oct 4, 2012
  1. @AHaymond

    Update activerecord/lib/active_record/persistence.rb

    AHaymond authored
    - Changed the comments documentation for the update_column(s) methods to add a little bit of clarity
Commits on Oct 3, 2012
  1. @frodsan

    Count returns 0 without querying if parent is not saved

    frodsan authored
    Patches `CollectionAssociation#count` to return 0 without querying
    if the parent record is new. Consider the following code:
        class Account
          has_many :dossiers
        class Dossier
          belongs_to :account
        a =
        # before patch
        # SELECT COUNT(*) FROM "dossiers" WHERE "dossiers"."account_id" IS NULL
        # => 0
        # after
        a.dosiers.count # fires without sql query
        # => 0
    Fixes #1856.
  2. @spastorino


    spastorino authored
Commits on Oct 2, 2012
  1. @rafaelfranca

    Merge pull request #7822 from lulalala/reset-counter-cache-for-has-ma…

    rafaelfranca authored
    Fix reset_counters crashing on has_many :through associations.
  2. @lulalala

    Fix reset_counters() crashing on has_many :through associations.

    lulalala authored
    The counter column name in the intermediate model need to be access
    via the through reflection.
  3. @rafaelfranca

    Merge pull request #7708 from bdurand/optimize_log_subscribers

    rafaelfranca authored
    Optimize log subscribers to check if the log level is sufficient
Commits on Sep 30, 2012
  1. @bdurand

    Optimize log subscribers to check if the log level is sufficient befo…

    bdurand authored
    …re performing an operations.
Commits on Sep 29, 2012
  1. @acapilleri

    small refactoring of build_relation in uniqueness

    acapilleri authored
    reflection init as 'if' stantment.
    column is always the same expression and depends from the changing of attributes
Commits on Sep 28, 2012
  1. @rafaelfranca
  2. @vijaydev

    Merge branch 'master' of

    vijaydev authored
  3. @jonleighton

    Support for partial inserts.

    jonleighton authored
    When inserting new records, only the fields which have been changed
    from the defaults will actually be included in the INSERT statement.
    The other fields will be populated by the database.
    This is more efficient, and also means that it will be safe to
    remove database columns without getting subsequent errors in running
    app processes (so long as the code in those processes doesn't
    contain any references to the removed column).
Commits on Sep 27, 2012
  1. @kennyj
Commits on Sep 25, 2012
  1. @jeremy
Commits on Sep 24, 2012
  1. @fxn
Commits on Sep 22, 2012
  1. @frodsan
  2. @frodsan
  3. @frodsan

    nodoc AR::Railtie [ci skip]

    frodsan authored
  4. @frodsan
  5. @frodsan
  6. @frodsan
  7. @frodsan
  8. @steveklabnik
  9. @frodsan
  10. @frodsan
  11. @frodsan
Commits on Sep 21, 2012
  1. @spastorino

    start could be a string

    spastorino authored
    Related to 761bc75 and
  2. @spastorino

    Revert "Fix find_in_batches with customized primary_key"

    spastorino authored
    This reverts commit 761bc75.
    This commit wasn't fixing any issue just using the same table for
    different models with different primary keys.
  3. @jeremy
  4. @jeremy

    Use default charset/collation only if *neither* is specified. Otherwi…

    jeremy authored
    …se we set utf8_unicode_ci collation on latin1 table.
  5. @vijaydev

    Merge branch 'master' of

    vijaydev authored
    While resolving conflicts, I have chosen to ignore changes done in
    docrails at some places - these will be most likely 1.9 hash syntax
  6. @jonleighton

    Support for specifying transaction isolation level

    jonleighton authored
    If your database supports setting the isolation level for a transaction,
    you can set it like so:
      Post.transaction(isolation: :serializable) do
        # ...
    Valid isolation levels are:
    * `:read_uncommitted`
    * `:read_committed`
    * `:repeatable_read`
    * `:serializable`
    You should consult the documentation for your database to understand the
    semantics of these different levels:
    An `ActiveRecord::TransactionIsolationError` will be raised if:
    * The adapter does not support setting the isolation level
    * You are joining an existing open transaction
    * You are creating a nested (savepoint) transaction
    The mysql, mysql2 and postgresql adapters support setting the
    transaction isolation level. However, support is disabled for mysql
    versions below 5, because they are affected by a bug
    ( which means the isolation level
    gets persisted outside the transaction.
  7. @steveklabnik

    Add extra note about :dependent => :destroy.

    steveklabnik authored
    Callbacks may interfere with each other.
  8. @jonleighton

    Merge pull request #5248 from jcoleman/should-unset-association-when-…

    jonleighton authored
    Unset association when existing record is destroyed.
Commits on Sep 20, 2012
  1. @frodsan
Something went wrong with that request. Please try again.