Skip to content
This repository

Dec 22, 2011

  1. Jon Leighton

    Make read_attribute code path accessible at the class level

    authored December 22, 2011

Dec 15, 2011

  1. Jon Leighton

    Split out most of the AR::Base code into separate modules :cake:

    authored December 15, 2011

Nov 16, 2011

  1. James Adam

    `ActiveRecord::Base#becomes` should retain the errors of the original…

    … object.
    
    This commit contains a simple failing test that demonstrates the behaviour we expect, and a fix. When using `becomes` to transform the type of an object, it should retain any error information that was present on the original instance.
    authored October 26, 2011

Oct 05, 2011

  1. Jon Leighton

    Revert "Raise error on unknown primary key."

    This reverts commit ee2be43.
    authored October 05, 2011
  2. Jon Leighton

    Raise error on unknown primary key.

    If we don't have a primary key when we ask for it, it's better to fail
    fast. Fixes GH #2307.
    authored October 05, 2011

Sep 12, 2011

  1. Jon Leighton

    Raise error when using write_attribute with a non-existent attribute.

    Previously we would just silently write the attribute. This can lead to
    subtle bugs (for example, see the change in AutosaveAssociation where a
    through association would wrongly gain an attribute.
    
    Also, ensuring that we never gain any new attributes after
    initialization will allow me to reduce our dependence on method_missing.
    authored September 10, 2011

Aug 08, 2011

  1. Jon Leighton

    Make it the responsibility of the connection to hold onto an ARel vis…

    …itor for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
    authored August 08, 2011

Jul 24, 2011

  1. Fixed Typo

    authored July 24, 2011 jpkcambridge committed July 24, 2011

Jul 08, 2011

  1. Destroy association habtm record before destroying the record itself.…

    … Fixes issue #402.
    authored May 31, 2011 jonleighton committed July 08, 2011

Jun 28, 2011

  1. Aaron Patterson

    cache column defaults for AR object instantiation

    authored June 27, 2011

Jun 07, 2011

  1. Dmitriy Kiriyenko

    Do not use default_scope in ActiveRecord::Persistence#touch.

    authored June 06, 2011 jonleighton committed June 07, 2011

May 25, 2011

  1. Xavier Noria

    Merge branch 'master' of git://github.com/lifo/docrails

    Conflicts:
    	actionmailer/lib/action_mailer/base.rb
    	activesupport/lib/active_support/core_ext/kernel/requires.rb
    authored May 25, 2011

May 24, 2011

  1. Aaron Patterson

    rescue record invalid exceptions and return false from the save metho…

    …d. fixes #796
    authored May 24, 2011

May 21, 2011

  1. Sebastian Martinez

    Add more doc to #update_column.

May 08, 2011

  1. Josh Kalderimis

    renamed mass-assignment scopes to roles, updated code, tests, docs an…

    …d security guide
    authored May 08, 2011

Apr 29, 2011

  1. Aaron Patterson

    postgresql supports prepare statement deletes

    authored April 28, 2011

Apr 26, 2011

  1. Sebastian Martinez

    Fix #update_attributes api format error

    authored April 26, 2011
  2. Josh Kalderimis

    AR update_attributes api is updated to reflect the addition of assign…

    …_attributes
    authored April 26, 2011

Mar 28, 2011

  1. Sebastian Martinez

    Added new #update_column method.

    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
    authored March 27, 2011 spastorino committed March 27, 2011

Mar 27, 2011

  1. Sebastian Martinez

    Revert "Removed #update_attribute method. New #update_column method."

    This reverts commit 45c233e.
    
    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
    authored March 27, 2011 spastorino committed March 27, 2011

Mar 26, 2011

  1. Sebastian Martinez

    Removed #update_attribute method. New #update_column method.

    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
    authored March 26, 2011 spastorino committed March 26, 2011

Mar 22, 2011

  1. Aaron Patterson

    pushing id insertion and prefetch primary keys down to Relation#insert

    authored March 22, 2011

Feb 15, 2011

  1. Emilio Tagua

    Merge remote branch 'rails/master' into identity_map

    Conflicts:
    	activerecord/examples/performance.rb
    	activerecord/lib/active_record/association_preload.rb
    	activerecord/lib/active_record/associations.rb
    	activerecord/lib/active_record/associations/association_proxy.rb
    	activerecord/lib/active_record/autosave_association.rb
    	activerecord/lib/active_record/base.rb
    	activerecord/lib/active_record/nested_attributes.rb
    	activerecord/test/cases/relations_test.rb
    authored February 15, 2011

Feb 09, 2011

  1. Josh Kalderimis

    removed some duplication from LH issue 5505 regarding AR touch and op…

    …timistic locking [#5505 state:resolved]
    
    Signed-off-by: Santiago Pastorino and José Ignacio Costa <santiago+jose@wyeworks.com>
    authored February 09, 2011 Santiago Pastorino and José Ignacio Costa committed February 09, 2011
  2. Franck Verrot

    The optimistic lock column should be increased when calling touch

    Signed-off-by: Santiago Pastorino and José Ignacio Costa <santiago+jose@wyeworks.com>
    authored November 27, 2010 Santiago Pastorino and José Ignacio Costa committed February 09, 2011

Dec 29, 2010

  1. Santiago Pastorino

    Do not use primary key on insertion when it's nil

    authored December 29, 2010

Dec 28, 2010

  1. Santiago Pastorino

    Allow primary_key to be an attribute when the model is a new record

    authored December 28, 2010

Dec 20, 2010

  1. Emilio Tagua

    Merge remote branch 'rails/master' into identity_map

    Conflicts:
    	activerecord/lib/active_record/associations/association_proxy.rb
    	activerecord/lib/active_record/autosave_association.rb
    	activerecord/lib/active_record/base.rb
    	activerecord/lib/active_record/persistence.rb
    authored December 20, 2010

Dec 02, 2010

  1. Aaron Patterson

    removing calls to deprecated methods

    authored December 02, 2010
  2. Aaron Patterson

    refactor `self.class` to a variable

    authored December 02, 2010

Nov 28, 2010

  1. José Valim

    Partialy revert f1c13b0

    authored November 28, 2010

Nov 19, 2010

  1. Emilio Tagua

    Use identity mapper only if enabled.

    authored September 13, 2010
  2. Marcin Raczkowski

    IdentityMap - adding and removing of records on create/update

    authored August 28, 2010 miloops committed November 19, 2010

Nov 11, 2010

  1. Franck Verrot

    STI type is now updated when calling AR::Base.becomes on subclasses [#…

    …5953 state:resolved]
    authored November 12, 2010 josevalim committed November 12, 2010

Nov 09, 2010

  1. Santiago Pastorino

    Double negation of an already boolean value produces the same result

    authored November 09, 2010
Something went wrong with that request. Please try again.