Skip to content

HTTPS clone URL

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
        end
    
        class Dossier
          belongs_to :account
        end
    
        a = Account.new
        a.dossiers.build
    
        # before patch
        a.dossiers.count
        # SELECT COUNT(*) FROM "dossiers" WHERE "dossiers"."account_id" IS NULL
        # => 0
    
        # after
        a.dosiers.count # fires without sql query
        # => 0
    
    Fixes #1856.
  2. @spastorino

    Refactor

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

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

    rafaelfranca authored
    …ny-through
    
    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 github.com:lifo/docrails

    vijaydev authored
    Conflicts:
    	actionpack/lib/action_view/helpers/asset_tag_helper.rb
  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
    eb876c4
  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 github.com:lifo/docrails

    vijaydev authored
    Conflicts:
    	actionmailer/lib/action_mailer/base.rb
    	activesupport/lib/active_support/configurable.rb
    	activesupport/lib/active_support/core_ext/module/deprecation.rb
    	guides/source/action_controller_overview.md
    	guides/source/active_support_core_extensions.md
    	guides/source/ajax_on_rails.textile
    	guides/source/association_basics.textile
    	guides/source/upgrading_ruby_on_rails.md
    
    While resolving conflicts, I have chosen to ignore changes done in
    docrails at some places - these will be most likely 1.9 hash syntax
    changes.
  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
        # ...
      end
    
    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:
    
    * http://www.postgresql.org/docs/9.1/static/transaction-iso.html
    * https://dev.mysql.com/doc/refman/5.0/en/set-transaction.html
    
    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
    (http://bugs.mysql.com/bug.php?id=39170) 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
    …an-existing-record-is-destroyed
    
    Unset association when existing record is destroyed.
Commits on Sep 20, 2012
  1. @frodsan
Something went wrong with that request. Please try again.