Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Nov 22, 2012
  1. @senny
Commits on Nov 2, 2012
  1. @vijaydev

    Merge branch 'master' of github.com:lifo/docrails

    vijaydev authored
    Conflicts:
    	actionpack/lib/action_controller/metal/mime_responds.rb
    	activerecord/lib/active_record/attribute_methods.rb
    	guides/source/working_with_javascript_in_rails.md
Commits on Oct 30, 2012
  1. @gazay
Commits on Oct 29, 2012
  1. @nikitug

    Provide a call stack for deprecation warnings where needed.

    nikitug authored
    It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
Commits on Oct 24, 2012
  1. fix a typo in comments to ActiveRecord::Associations::Association.sta…

    Andrii Dovgaliuk authored
    …le_state
Commits on Sep 25, 2012
  1. @jeremy
Commits on Sep 17, 2012
  1. @guilleiguaran
Commits on Aug 5, 2012
  1. @fxn

    removes usage of Object#in? from the code base (the method remains de…

    fxn authored
    …fined by Active Support)
    
    Selecting which key extensions to include in active_support/rails
    made apparent the systematic usage of Object#in? in the code base.
    After some discussion in
    
        5ea6b0d
    
    we decided to remove it and use plain Ruby, which seems enough
    for this particular idiom.
    
    In this commit the refactor has been made case by case. Sometimes
    include? is the natural alternative, others a simple || is the
    way you actually spell the condition in your head, others a case
    statement seems more appropriate. I have chosen the one I liked
    the most in each case.
Commits on Aug 2, 2012
  1. @fxn
  2. @fxn
Commits on Aug 1, 2012
  1. @jonleighton

    s/scoped/scope/

    jonleighton authored
  2. @jonleighton

    Revert "Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql."

    jonleighton authored
    This reverts commit 3803fcc.
    
    Conflicts:
    	activerecord/CHANGELOG.md
    
    It will be deprecated only in 4.0, and removed properly in 4.1.
Commits on Jul 27, 2012
  1. @jonleighton

    Deprecate ActiveRecord::Base.scoped.

    jonleighton authored
    It doesn't serve much purpose now that ActiveRecord::Base.all returns a
    Relation.
    
    The code is moved to active_record_deprecated_finders.
Commits on Jul 20, 2012
  1. @jonleighton
Commits on Jul 13, 2012
  1. @jonleighton
  2. @jonleighton
Commits on Apr 12, 2012
  1. @kennyj
  2. @kennyj

    Some refactor for association.

    kennyj authored
    * Remove unused association_class method.
    * Remove a unnecessary assignment.
    * Move @updated to BelongsToAssociation that only reference this instance variable.
    * Reset @stale_state at the reset method. I think this place is right place.
Commits on Apr 3, 2012
  1. @kennyj
Commits on Mar 13, 2012
  1. @carlosantoniodasilva
Commits on Mar 5, 2012
  1. @byroot @tenderlove

    Fix #5069 - Protect foreign key from mass assignment throught associa…

    byroot authored tenderlove committed
    …tion builder
Commits on Mar 4, 2012
  1. @carlosantoniodasilva

    Initialize @stale_state to nil in association

    carlosantoniodasilva authored
    This apparently fix the warning related to @new_record variable not
    being initialized in AR's test suit, when an association is built and
    the object is marshalled/loaded.
    
    See these tests in AR's base_test.rb:
    
    test_marshalling_with_associations
    test_marshalling_new_record_round_trip_with_associations
    
    Closes #3720.
Commits on Dec 21, 2011
  1. @qoobaa

    added failing tests for has_many, has_one and belongs_to associations…

    qoobaa authored
    … with strict mass assignment sanitizer, fixed build_record to not merge creation_attributes, removed failing nested attributes tests (that feature was broken anyway) #4051
Commits on Dec 15, 2011
  1. @akaspick

    Allow nested attributes in associations to update values in it's owne…

    akaspick authored
    …r object. Fixes a regression from 3.0.x
Commits on Aug 15, 2011
  1. @jonleighton

    Fix private methods which are delegated to. This previously worked be…

    jonleighton authored
    …cause Module#delegate previously ignored method visibility.
Commits on Jul 7, 2011
  1. @jonleighton

    Don't construct association scope in initializer. This yields a big p…

    jonleighton authored
    …erformance gain for cases where the association is never used to load the target, for example with preloading. Related: #1873.
Commits on Jun 30, 2011
  1. @jonleighton

    Assign the association attributes to the associated record before the…

    jonleighton authored
    … before_initialize callback of the record runs. Fixes #1842.
Commits on Jun 7, 2011
  1. @jonleighton

    Allow polymorphic has_one to work when the association is set before …

    jonleighton authored
    …the owner has been saved. Fixes #1524.
  2. @jonleighton

    When you add a record to a polymorphic has_one, you should be able to…

    jonleighton authored
    … access the owner from the associated record
Commits on Apr 13, 2011
  1. @sikachu @dhh

    Remove `#among?` from Active Support

    sikachu authored dhh committed
    After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now.
    
    It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
Commits on Apr 11, 2011
  1. @dhh
Commits on Apr 10, 2011
  1. @sikachu @dhh

    Using Object#in? and Object#either? in various places

    sikachu authored dhh committed
    There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
Commits on Mar 10, 2011
  1. @jonleighton

    Move the code which builds a scope for through associations into a ge…

    jonleighton authored
    …neric AssociationScope class which is capable of building a scope for any association.
Commits on Mar 5, 2011
  1. @rtlechow @fxn

    Active Record typos.

    rtlechow authored fxn committed
Commits on Mar 4, 2011
  1. @jonleighton @tenderlove

    Fix a couple of tests in join_model_test.rb which were failing when t…

    jonleighton authored tenderlove committed
    …he identity map is turned off
Something went wrong with that request. Please try again.