Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Mar 12, 2011
  1. @pixeltrix
Commits on Dec 1, 2010
  1. @tenderlove

    avoid deprecated methods

    tenderlove authored
Commits on Oct 30, 2010
  1. @tenderlove

    only returning where values for the corresponding relation, also filt…

    tenderlove authored
    …ering where value hash based on table name [#5234 state:resolved] [#5184 state:resolved]
Commits on Sep 29, 2010
  1. @tenderlove
  2. @tenderlove
Commits on Sep 28, 2010
  1. @marklazz @spastorino

    Set attributes properly for model built from association with conditi…

    marklazz authored spastorino committed
    …ons [#5562 state:resolved]
    
    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Commits on Sep 7, 2010
  1. @jeremy

    fixed some issues with JSON encoding

    jeremy authored
    - as_json in ActiveModel should return a hash
      and handle :only/:except/:methods options
    - Array and Hash should call as_json on their elements
    - json methods should not modify options argument
    
    [#5374 state:committed]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
    
    Conflicts:
    
    	activemodel/lib/active_model/serialization.rb
Commits on Aug 23, 2010
  1. @tenderlove
Commits on Aug 19, 2010
  1. @neerajdotname @josevalim

    While creating a new record using has_many create method default scop…

    neerajdotname authored josevalim committed
    …e of child should be respected.
    
    author.posts.create should take into account default_scope
    defined on post.
    
    [#3939: state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Aug 14, 2010
  1. @spastorino

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

    spastorino authored
    …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 authored tenderlove committed
    This will hopefully make Active Record run a bit more faster.
Commits on Aug 6, 2010
  1. @tenderlove
Commits on Aug 2, 2010
  1. @neerajdotname
Commits on Jul 30, 2010
  1. @tenderlove
  2. @fxn
Commits on Jul 20, 2010
  1. @tenderlove
Commits on Jul 13, 2010
  1. @mislav @josevalim

    enable AS::JSON.encode to encode AR::Relation by providing `as_json` …

    mislav authored josevalim committed
    …method
    
    [#5073 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jul 8, 2010
  1. @mislav @jeremy

    fix ActiveRecord `destroy_all` so it returns destroyed records

    mislav authored jeremy committed
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Commits on Jun 29, 2010
  1. @josevalim
  2. @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
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>
Commits on Jun 23, 2010
  1. @neerajdotname @josevalim

    adding fix for to_xml for ActiveRecord relation object

    neerajdotname authored josevalim committed
    Signed-off-by: José Valim <jose.valim@gmail.com>
  2. @neerajdotname @josevalim

    ActiveRecord's relation object should respond to to_json and to_yaml

    neerajdotname authored josevalim committed
    [#4547 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jun 16, 2010
  1. @rizwanreza
Commits on Jun 11, 2010
  1. @dolzenko
Commits on Jun 4, 2010
  1. @rsim
  2. @rsim

    downcase table names in aliased_table_name_for and references_eager_l…

    rsim authored
    …oaded_tables? methods (as Oracle quoted table names are in uppercase)
Commits on Apr 2, 2010
  1. @lifo

    Make Relation#inspect less noisy

    lifo authored
  2. @lifo
  3. @lifo
  4. @lifo

    Add Relation extensions

    lifo authored
Commits on Mar 28, 2010
  1. @fxn
Commits on Mar 22, 2010
  1. @miloops @jeremy

    From and lock should be defined to be consistent with other ivars. Li…

    miloops authored jeremy committed
    …mit and offset are always defined, no need to test that.
    
    [#4253 state:committed]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Commits on Mar 15, 2010
  1. @tenderlove @wycats

    cleaning up many more warnings in activerecord [#4180 state:resolved]

    tenderlove authored wycats committed
    Signed-off-by: wycats <wycats@gmail.com>
Commits on Mar 14, 2010
  1. @tenderlove @wycats

    cleaning up some test warnings

    tenderlove authored wycats committed
    Signed-off-by: wycats <wycats@gmail.com>
Something went wrong with that request. Please try again.