Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 25, 2010
  1. @tenderlove
  2. @tenderlove
  3. @tenderlove
Commits on Aug 23, 2010
  1. @tenderlove
Commits on Aug 19, 2010
  1. @tenderlove
Commits on Aug 12, 2010
  1. @neerajdotname @josevalim

    Ensure we can nest include calls [#5285 state:resolved]

    neerajdotname authored josevalim committed
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Aug 11, 2010
  1. @tenderlove
  2. @tenderlove

    avoiding tap saves us time

    tenderlove authored
  3. @tenderlove
Commits on Aug 4, 2010
  1. @tenderlove
Commits on Jul 30, 2010
  1. @tenderlove
  2. @tenderlove
  3. @tenderlove
Commits on Jul 29, 2010
  1. @tenderlove
  2. @tenderlove
  3. @tenderlove
  4. @tenderlove

    avoid calling to_sql twice

    tenderlove authored
Commits on Jul 15, 2010
  1. @lifo

    Revert "Style fixes"

    lifo authored
    This reverts commit 3c300b3.
  2. @wycats

    Style fixes

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

    Style fixes

    lifo authored
Commits on Jun 29, 2010
  1. @josevalim

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

    josevalim authored
    …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
  2. @spastorino @jeremy

    Remove unneeded reject

    spastorino authored jeremy committed
Commits on Jun 27, 2010
  1. @spastorino @jeremy

    Refactor: metaprogramming here it's confusing and make use of tap

    spastorino authored jeremy committed
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  2. @spastorino @wycats

    Removes useless flatten

    spastorino authored wycats committed
Commits on Jun 26, 2010
  1. @josevalim
Commits on Jun 25, 2010
  1. @spastorino @josevalim

    blocks removed from all the ActiveRelation query_methods, extend meth…

    spastorino authored josevalim committed
    …od added instead
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
  2. @spastorino @josevalim

    reorder method added to ActiveRelation

    spastorino authored josevalim committed
    [#4972 state:committed]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
  3. @spastorino

    Support for multiple selects added

    Neeraj Singh and Santiago Pastorino authored spastorino committed
    [#4841 state:committed]
  4. @spastorino
  5. @spastorino
Commits on Jun 24, 2010
  1. @miloops

    Only yield block if given.

    miloops authored
Commits on Jun 22, 2010
  1. @miloops @josevalim

    Fix order method to accept relation attributes.

    miloops authored josevalim committed
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jun 20, 2010
  1. @miloops @josevalim

    Don't waste time building relations if there are no values presents. [#…

    miloops authored josevalim committed
    …4860 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jun 19, 2010
  1. @miloops @josevalim

    Refactor build_arel: move joins out and simplify havings. [#4860 stat…

    miloops authored josevalim committed
    …e:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jun 2, 2010
  1. @lifo
Something went wrong with that request. Please try again.