Skip to content
This repository

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.
    
    Conflicts:
    
    	activerecord/lib/active_record/relation/finder_methods.rb
    	activerecord/test/cases/adapter_test.rb
    jonleighton authored

Jul 25, 2011

  1. Fixed Typo

    John authored fxn 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 24, 2011

  1. Aaron Patterson

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

    …d. fixes #796
    tenderlove authored

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

Nov 09, 2010

  1. Santiago Pastorino

    Double negation of an already boolean value produces the same result

    spastorino authored
  2. Santiago Pastorino

    Don't check if persisted is defined just initialize it properly

    spastorino authored
  3. David Chelimsky

    use persisted? instead of new_record? wherever possible

    - persisted? is the API defined in ActiveModel
    - makes it easier for extension libraries to conform to ActiveModel APIs
      without concern for whether the extended object is specifically
      ActiveRecord
    
    [#5927 state:committed]
    
    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
    dchelimsky authored spastorino committed

Sep 24, 2010

  1. tnp

    restore behavior of touch for models without :updated_xx [#5439 state…

    …:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    tnp authored josevalim committed

Sep 22, 2010

  1. Emilio Tagua

    Use map instead inject.

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

Aug 27, 2010

  1. Joost Baaij

    The call-seq directive has no useful effect on our documentation and …

    …is not used anywhere else.
    
    Worse still, its use breaks some rdoc, replacing method names with a curly brace.
    Having just one call-seq directive doesn't add anything since this is covered by regular rdoc.
    Having multiple might make sense, but these are already documented with examples.
    
    This partly re-reverts 60de0e5 but does not
    touch the vendorized code in html-scanner.
    tilsammans authored

Aug 24, 2010

  1. Xavier Noria

    edit pass to a recent doc patch

    fxn authored
  2. Xavier Noria

    Merge remote branch 'docrails/master'

    fxn authored
  3. Neeraj Singh

    @user.touch should not fail if User does not have updated_at/updated_…

    …on column.
    
    [#5439 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    neerajdotname authored josevalim committed
Something went wrong with that request. Please try again.