Skip to content
Commits on May 29, 2012
  1. @carlosantoniodasilva

    Yield only one argument instead of splatting.

    carlosantoniodasilva committed
    Add Changelog entry. Closes #4003
  2. Add support for CollectionAssociation#delete by Fixnum or String

    Francesco Rodriguez committed
    I found the next issue between CollectionAssociation `delete`
    and `destroy`.
    
        class Person < ActiveRecord::Base
          has_many :pets
        end
    
        person.pets.destroy(1)
        # => OK, returns the destroyed object
    
        person.pets.destroy("2")
        # => OK, returns the destroyed object
    
        person.pets.delete(1)
        # => ActiveRecord::AssociationTypeMismatch
    
        person.pets.delete("2")
        # => ActiveRecord::AssociationTypeMismatch
    
    Adding support for deleting with a fixnum or string like
    `destroy` method.
Commits on May 18, 2012
  1. @jonleighton

    fix typo [ci skip]

    jonleighton committed
  2. @jonleighton
Commits on May 17, 2012
  1. @iGEL

    Don't destroy readonly models

    iGEL committed
Commits on May 16, 2012
  1. @RStankov

    Relation#from to accept other Relation objects

    RStankov committed
    Record.from("(#{sub_query.to_sql})")    -> Record.from(sub_query)
    Record.from("(#{sub_query.to_sql}) a")  -> Record.from(sub_query, :a)
  2. @avakhov

    Fix misprint in AR changelog

    avakhov committed
Commits on May 15, 2012
  1. @acapilleri

    corrected some misspelling

    acapilleri committed
Commits on May 13, 2012
  1. @rafaelfranca

    Copy edit [ci skip]

    rafaelfranca committed
Commits on May 9, 2012
  1. @Antiarchitect
Commits on May 5, 2012
  1. @mipearson
Commits on May 3, 2012
  1. @mhfs
Commits on May 1, 2012
  1. @vijaydev

    changelog fixes. Closes #3911

    vijaydev committed
Commits on Apr 16, 2012
  1. @bsodmike
Commits on Apr 14, 2012
  1. @joshuap
Commits on Apr 12, 2012
  1. @jonleighton

    Add bang versions of relation query methods.

    jonleighton committed
    The main reason for this is that I want to separate the code that does
    the mutating from the code that does the cloning.
Commits on Mar 30, 2012
  1. @jonleighton
Commits on Mar 29, 2012
  1. @guilleiguaran
Commits on Mar 21, 2012
  1. @jonleighton

    Deprecate eager-evaluated scopes.

    jonleighton committed
    Don't use this:
    
        scope :red, where(color: 'red')
        default_scope where(color: 'red')
    
    Use this:
    
        scope :red, -> { where(color: 'red') }
        default_scope { where(color: 'red') }
    
    The former has numerous issues. It is a common newbie gotcha to do
    the following:
    
        scope :recent, where(published_at: Time.now - 2.weeks)
    
    Or a more subtle variant:
    
        scope :recent, -> { where(published_at: Time.now - 2.weeks) }
        scope :recent_red, recent.where(color: 'red')
    
    Eager scopes are also very complex to implement within Active
    Record, and there are still bugs. For example, the following does
    not do what you expect:
    
        scope :remove_conditions, except(:where)
        where(...).remove_conditions # => still has conditions
Commits on Mar 13, 2012
  1. @carlosantoniodasilva
  2. @carlosantoniodasilva
Commits on Mar 12, 2012
  1. @pixeltrix
Commits on Mar 9, 2012
  1. @rafaelfranca

    Fix my name in the CHANGELOG to follow the convention

    rafaelfranca committed
    Also add missing entries and use the formating convention
Commits on Mar 8, 2012
  1. @vijaydev

    fix incorrect changelog headings [ci skip].

    vijaydev committed
    Last commit message should not have said 'Rails 4' either
  2. @vijaydev
  3. @kennyj
  4. @tenderlove

    Merge pull request #5162 from kennyj/schema_cache_dump

    tenderlove committed
    [Proposal] Schema cache dump
Commits on Mar 1, 2012
  1. @claudiob

    Add release dates to documentation

    claudiob committed
    Set "March 1, 2012" as the release date for 3.2.2, 3.1.4, 3.0.12
Commits on Feb 29, 2012
  1. @kennyj
Commits on Feb 25, 2012
  1. @pacoguzman

    Update changelogs with rails 3.0-stable branch info

    Paco Guzman committed with pacoguzman
Commits on Feb 18, 2012
  1. @simi

    Update activerecord/CHANGELOG.md

    simi committed
Commits on Feb 9, 2012
  1. @mhfs

    Added where option to add_index to support postgresql partial indices

    mhfs committed
    The `add_index` method now supports a `where` option that receives a
    string with the partial index criteria.
    
        add_index(:accounts, :code, :where => "active")
    
        Generates
    
        CREATE INDEX index_accounts_on_code ON accounts(code) WHERE active
Commits on Jan 31, 2012
  1. @xuanxu

    Added `none` query method to return zero records.

    xuanxu committed
    And added NullRelation class implementing the null object pattern for the `Relation` class.
Commits on Jan 29, 2012
  1. @hindenbug
Commits on Jan 27, 2012
  1. @rafaelfranca
Something went wrong with that request. Please try again.