Skip to content
Commits on Aug 19, 2010
  1. @pixeltrix @jeremy

    Optimize find_sti_class when store_full_sti_class is true

    pixeltrix committed with jeremy Aug 19, 2010
    [#5403]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  2. @jeremy
Commits on Aug 14, 2010
  1. @spastorino

    Deletes trailing whitespaces (over text files only find * -type f -ex…

    spastorino committed Aug 14, 2010
    …ec sed 's/[ \t]*$//' -i {} \;)
Commits on Aug 13, 2010
  1. @sikachu @tenderlove

    Removing most of the symbol to proc usage in Active Record

    sikachu committed with tenderlove Aug 14, 2010
    This will hopefully make Active Record run a bit more faster.
Commits on Aug 12, 2010
  1. @fxn
  2. @fxn

    updating documentation for named_scope and default_scope

    Neeraj Singh committed with fxn Aug 12, 2010
Commits on Aug 4, 2010
  1. @fxn
  2. @wycats
Commits on Aug 3, 2010
  1. fixing documentation

    Neeraj Singh committed Aug 3, 2010
Commits on Aug 2, 2010
  1. Correcting the documentation which wrongly states that each dynamic f…

    Neeraj Singh committed Aug 2, 2010
    …inder creates
    
    method on the class. Only dynamic finders using <tt>scoped_by_*</tt> creates new
    methods.
  2. Adding to AR::Base documentation about dynamically scopeded_by query

    Neeraj Singh committed Aug 2, 2010
    User.scoped_by_user_name('David')
Commits on Jul 28, 2010
  1. @tenderlove
Commits on Jul 25, 2010
  1. @spastorino @tenderlove
  2. @fastred
Commits on Jul 15, 2010
  1. @lifo

    Revert "Style fixes"

    lifo committed Jul 15, 2010
    This reverts commit 3c300b3.
  2. @wycats

    Style fixes

    wycats committed Jul 14, 2010
Commits on Jul 14, 2010
  1. @lifo

    Style fixes

    lifo committed Jul 14, 2010
Commits on Jul 13, 2010
  1. @khustochka @josevalim

    Added reorder delegation for ActiveRecord::Base(to be able to overwri…

    khustochka committed with josevalim Jul 12, 2010
    …te the default_scope ordering in the named scope [#5093 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jul 8, 2010
  1. @dtrasbo @josevalim

    Return from ActiveRecord::Base#attributes= unless value is a hash [#4070

    dtrasbo committed with josevalim Jun 30, 2010
     state:committed]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
  2. @joshk @josevalim

    removed an old unused method in AR which removed readonly attributes

    joshk committed with josevalim Jul 8, 2010
    Signed-off-by: José Valim <jose.valim@gmail.com>
  3. @josevalim

    removing unused method

    Neeraj Singh committed with josevalim Jul 1, 2010
    Signed-off-by: José Valim <jose.valim@gmail.com>
  4. @joshk @josevalim

    mass_assignment_security moved from AR to AMo, and minor test cleanup

    joshk committed with josevalim Jul 8, 2010
    Signed-off-by: José Valim <jose.valim@gmail.com>
  5. @joshk @josevalim

    minor changes to mass assignment security patch to bring it in line w…

    joshk committed with josevalim Jul 7, 2010
    …ith rails standards
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
  6. @eac @josevalim

    Mass assignment security refactoring

    eac committed with josevalim Jan 29, 2010
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jul 7, 2010
  1. @fxn
Commits on Jul 2, 2010
Commits on Jun 30, 2010
  1. @josevalim
Commits on Jun 29, 2010
  1. @dtrasbo @josevalim

    Remove ActiveRecord::Base#class_name [#379 state:committed]

    dtrasbo committed with josevalim Jun 29, 2010
    Signed-off-by: José Valim <jose.valim@gmail.com>
  2. @josevalim
  3. @josevalim

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

    josevalim committed Jun 29, 2010
    …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
Commits on Jun 28, 2010
  1. @josevalim

    with_exclusive_scope does not work properly if ARel is passed. It doe…

    Neeraj Singh committed with josevalim Jun 28, 2010
    …s work nicely if hash is passed. Blow up if user is attempting it pass ARel to with_exclusive_scope.
    
    [#3838 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
  2. @spastorino @jeremy
  3. @jeremy
Commits on Jun 24, 2010
  1. @spastorino @josevalim

    quotes are not necessary here

    spastorino committed with josevalim Jun 23, 2010
    Signed-off-by: José Valim <jose.valim@gmail.com>
Something went wrong with that request. Please try again.