Skip to content
This repository

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

Aug 24, 2010

  1. Xavier Noria

    edit pass to a recent doc patch

    fxn authored
  2. Neeraj Singh

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

    …n associated objects
    neerajdotname authored fxn committed
  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

Aug 12, 2010

  1. José Valim

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

    …r intrinsic to its implementation.
    josevalim authored

Aug 04, 2010

  1. Xavier Noria

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

    fxn authored

Aug 03, 2010

  1. Xavier Noria

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

    fxn authored

Aug 02, 2010

  1. Neeraj Singh

    ensuring that description does not exceed 100 columns

    neerajdotname authored
  2. José Valim

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

    …lved]
    josevalim authored

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

    neerajdotname authored fxn committed
  2. Neeraj Singh

    update_attribute should not update readonly attributes

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

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

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>
    neerajdotname authored josevalim committed
  2. José Valim

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

    josevalim authored
  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>
    neerajdotname authored josevalim committed

Jul 08, 2010

  1. José Valim

    Improve a bit the code in latest commits.

    josevalim authored
  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>
    neerajdotname authored josevalim committed

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

Jun 16, 2010

  1. Rizwan Reza

    Adds title and minor changes.

    rizwanreza authored

May 08, 2010

  1. Yehuda Katz

    eliminate alias_method_chain from ActiveRecord

    wycats authored
Something went wrong with that request. Please try again.