Skip to content
This repository

Jun 14, 2012

  1. Steve Klabnik

    Deprecate update_attribute.

    Historically, update_attribute and update_attributes are similar, but
    with one big difference: update_attribute does not run validations.
    These two methods are really easy to confuse given their similar
    names. Therefore, update_attribute is being deprecated in favor of
    update_column, and will be removed in Rails 4.
    
    See the discussion on rails-core here:
    https://groups.google.com/d/topic/rubyonrails-core/BWPUTK7WvYA/discussion
    steveklabnik authored

Dec 22, 2011

  1. Jon Leighton

    Make read_attribute code path accessible at the class level

    jonleighton authored

Dec 15, 2011

  1. Jon Leighton

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

    jonleighton authored

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.
    lazyatom authored

Oct 05, 2011

  1. Jon Leighton

    Revert "Raise error on unknown primary key."

    This reverts commit ee2be43.
    jonleighton authored
  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.
    jonleighton authored

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.
    jonleighton authored

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.
    jonleighton authored

Jul 24, 2011

  1. Fixed Typo

    John authored jpkcambridge committed

Jul 08, 2011

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

    … Fixes issue #402.
    Tomas D'Stefano authored jonleighton committed

Jun 28, 2011

  1. Aaron Patterson

    cache column defaults for AR object instantiation

    tenderlove authored

Jun 07, 2011

  1. Dmitriy Kiriyenko

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

    dmitriy-kiriyenko authored jonleighton committed

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
    fxn authored

May 24, 2011

  1. Aaron Patterson

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

    …d. fixes #796
    tenderlove authored

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
    joshk authored

Apr 29, 2011

  1. Aaron Patterson

    postgresql supports prepare statement deletes

    tenderlove authored

Apr 26, 2011

  1. Sebastian Martinez

    Fix #update_attributes api format error

    smartinez87 authored
  2. Josh Kalderimis

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

    …_attributes
    joshk authored

Mar 28, 2011

  1. Sebastian Martinez

    Added new #update_column method.

    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
    smartinez87 authored spastorino committed

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>
    smartinez87 authored spastorino committed

Mar 26, 2011

  1. Sebastian Martinez

    Removed #update_attribute method. New #update_column method.

    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
    smartinez87 authored spastorino committed

Mar 22, 2011

  1. Aaron Patterson

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

    tenderlove authored

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
    miloops authored

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>
    joshk authored Santiago Pastorino and José Ignacio Costa committed
  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>
    franckverrot authored Santiago Pastorino and José Ignacio Costa committed

Dec 29, 2010

  1. Santiago Pastorino

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

    spastorino authored

Dec 28, 2010

  1. Santiago Pastorino

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

    spastorino authored

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
    miloops authored

Dec 02, 2010

  1. Aaron Patterson

    removing calls to deprecated methods

    tenderlove authored
  2. Aaron Patterson

    refactor `self.class` to a variable

    tenderlove authored

Nov 28, 2010

  1. José Valim

    Partialy revert f1c13b0

    josevalim authored

Nov 19, 2010

  1. Emilio Tagua

    Use identity mapper only if enabled.

    miloops authored
  2. Marcin Raczkowski

    IdentityMap - adding and removing of records on create/update

    swistak authored miloops committed

Nov 11, 2010

  1. Franck Verrot

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

    …5953 state:resolved]
    franckverrot authored josevalim committed
Something went wrong with that request. Please try again.