Skip to content
This repository

May 24, 2011

  1. Aaron Patterson

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

    …d. fixes #796
    authored May 24, 2011

Nov 28, 2010

  1. Santiago Pastorino

    Revert f1c13b0

    authored November 28, 2010

Nov 09, 2010

  1. Santiago Pastorino

    Double negation of an already boolean value produces the same result

    authored November 09, 2010
  2. Santiago Pastorino

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

    authored November 09, 2010
  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>
    authored November 09, 2010 spastorino committed November 09, 2010

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>
    authored September 24, 2010 josevalim committed September 24, 2010

Aug 24, 2010

  1. Xavier Noria

    edit pass to a recent doc patch

    authored August 25, 2010
  2. Neeraj Singh

    touch operationg if used along with belongs_to will also be invoked o…

    …n associated objects
    authored August 24, 2010 fxn committed August 25, 2010
  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>
    authored August 24, 2010 josevalim committed August 24, 2010

Aug 12, 2010

  1. José Valim

    Make update_attribute behave as in Rails 2.3 and document the behavio…

    …r intrinsic to its implementation.
    authored August 12, 2010

Aug 04, 2010

  1. Xavier Noria

    standarizes the use of the article "an" for "SQL" and "SQLite"

    authored August 05, 2010

Aug 03, 2010

  1. Xavier Noria

    Merge remote branch 'docrails/master' into 3-0-stable

    authored August 03, 2010

Aug 02, 2010

  1. Neeraj Singh

    ensuring that description does not exceed 100 columns

    authored August 02, 2010
  2. José Valim

    Add an internal (private API) after_touch callback. [#5271 state:reso…

    …lved]
    authored August 02, 2010

Jul 28, 2010

  1. Neeraj Singh

    adding punctuations

  2. Neeraj Singh

    more documentation for update_attribute

Jul 27, 2010

  1. Neeraj Singh

    adding comments to update_attribute method

Jul 21, 2010

  1. Neeraj Singh

    expanded comment for update_attribute method

    authored July 20, 2010 fxn committed July 22, 2010
  2. Neeraj Singh

    update_attribute should not update readonly attributes

    [#5106 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    authored July 18, 2010 josevalim committed July 21, 2010

Jul 14, 2010

  1. Xavier Noria

    revises the rdoc of update_attributes and update_attributes! to docum…

    …ent they are wrapped in a transaction, and adds code comments explaining why
    authored July 14, 2010

Jul 13, 2010

  1. Neeraj Singh

    update_attributes and update_attributes! are now wrapped in a transac…

    …tion
    
    [#922 state:resovled]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    authored July 13, 2010 josevalim committed July 13, 2010
  2. José Valim

    Tidying up a bit, so update_attribute is not called twice on touch.

    authored July 13, 2010
  3. Neeraj Singh

    with this fix touch method - does not call validations - doest not ca…

    …ll callbacks - updates updated_at/on along with attribute if attribute is provided - marks udpated_at/on and attribute as NOT changed
    
    [#2520 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    authored July 09, 2010 josevalim committed July 13, 2010

Jul 08, 2010

  1. José Valim

    Improve a bit the code in latest commits.

    authored July 08, 2010
  2. Neeraj Singh

    This patch changes update_attribute implementatino so:

    - it will only save the attribute it has been asked to save and not all dirty attributes
    
    - it does not invoke callbacks
    
    - it does change updated_at/on
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    authored June 30, 2010 josevalim committed July 08, 2010

Jun 29, 2010

  1. José Valim

    Add scoping and unscoped as the syntax to replace the old with_scope …

    …and with_exclusive_scope. A few examples:
    
    * with_scope now should be scoping:
    
    Before:
    
      Comment.with_scope(:find => { :conditions => { :post_id => 1 } }) do
        Comment.first #=> SELECT * FROM comments WHERE post_id = 1
      end
    
    After:
    
      Comment.where(:post_id => 1).scoping do
        Comment.first #=> SELECT * FROM comments WHERE post_id = 1
      end
    
    * with_exclusive_scope now should be unscoped:
    
      class Post < ActiveRecord::Base
        default_scope :published => true
      end
    
      Post.all #=> SELECT * FROM posts WHERE published = true
    
    Before:
    
      Post.with_exclusive_scope do
        Post.all #=> SELECT * FROM posts
      end
    
    After:
    
      Post.unscoped do
        Post.all #=> SELECT * FROM posts
      end
    
    Notice you can also use unscoped without a block and it will return an anonymous scope with default_scope values:
    
      Post.unscoped.all #=> SELECT * FROM posts
    authored June 29, 2010

Jun 16, 2010

  1. Rizwan Reza

    Adds title and minor changes.

    authored June 16, 2010

May 08, 2010

  1. Yehuda Katz

    eliminate alias_method_chain from ActiveRecord

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