Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Nov 9, 2012
  1. @nikitug

    Keep the code related to serialization in Serialization module.

    nikitug authored
    We should not need any `serialized_attributes` checks outside `ActiveRecord::AttributeMethods::Serialization` module.
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 28, 2012
  1. AR::AttributeMethods#[] raises AM::AttributeMissingError for missing …

    Francesco Rodriguez authored
    …attributes.
    
    This fixes the following behaviour:
    
        class Person < ActiveRecord::Base
          belongs_to :company
        end
    
        # Before:
        person = Person.select('id').first
        person[:name]       # => nil
        person.name         # => ActiveModel::MissingAttributeError: missing_attribute: name
        person[:company_id] # => nil
        person.company      # => nil
    
        # After:
        person = Person.select('id').first
        person[:name]       # => ActiveModel::MissingAttributeError: missing_attribute: name
        person.name         # => ActiveModel::MissingAttributeError: missing_attribute: name
        person[:company_id] # => ActiveModel::MissingAttributeError: missing_attribute: company_id
        person.company      # => ActiveModel::MissingAttributeError: missing_attribute: company_id
    
    Fixes #5433.
Commits on Oct 26, 2012
  1. @jonleighton

    Remove ActiveRecord::Model

    jonleighton authored
    In the end I think the pain of implementing this seamlessly was not
    worth the gain provided.
    
    The intention was that it would allow plain ruby objects that might not
    live in your main application to be subclassed and have persistence
    mixed in. But I've decided that the benefit of doing that is not worth
    the amount of complexity that the implementation introduced.
Commits on Oct 22, 2012
  1. read_attribute is public [ci skip]

    Francesco Rodriguez authored
  2. improve AR::AttributeMethods documentation [ci skip]

    Francesco Rodriguez authored
Commits on Oct 21, 2012
  1. Fix AR::AttributeMethods#[] example [ci skip]

    Francesco Rodriguez authored
  2. update AR::AttributeMethods documentation [ci skip]

    Francesco Rodriguez authored
Commits on Sep 28, 2012
  1. @jonleighton

    Support for partial inserts.

    jonleighton authored
    When inserting new records, only the fields which have been changed
    from the defaults will actually be included in the INSERT statement.
    The other fields will be populated by the database.
    
    This is more efficient, and also means that it will be safe to
    remove database columns without getting subsequent errors in running
    app processes (so long as the code in those processes doesn't
    contain any references to the removed column).
Commits on Aug 2, 2012
  1. @fxn
Commits on Jun 15, 2012
  1. @jonleighton
Commits on Jun 9, 2012
  1. @spastorino
  2. @josevalim

    Merge pull request #6687 from tiegz/3-2-optimizations

    josevalim authored josevalim committed
    ActiveRecord#attributes optimization: minimize objects created
Commits on Mar 28, 2012
  1. @jonleighton
Commits on Mar 12, 2012
  1. @tenderlove

    Merge pull request #5294 from robinroestenburg/master

    tenderlove authored
    Refactoring of `arel_attributes_values` method
Commits on Mar 7, 2012
  1. @Jacobkg
Commits on Mar 6, 2012
  1. @robinroestenburg
Commits on Mar 5, 2012
  1. @robinroestenburg
Commits on Feb 11, 2012
  1. @lest
Commits on Feb 6, 2012
  1. @tenderlove
Commits on Jan 20, 2012
  1. @jonleighton

    Fix another race condition.

    jonleighton authored
    From 2c667f6.
    
    Thanks @pwnall for the heads-up.
Commits on Jan 13, 2012
  1. @jonleighton

    Fix race condition :bomb:

    jonleighton authored
Commits on Jan 11, 2012
  1. @tomstuart
Commits on Dec 28, 2011
  1. @jonleighton

    Support establishing connection on ActiveRecord::Model.

    jonleighton authored
    This is the 'top level' connection, inherited by any models that include
    ActiveRecord::Model or inherit from ActiveRecord::Base.
Commits on Dec 24, 2011
  1. @jonleighton
  2. @jonleighton
Commits on Dec 23, 2011
  1. @jonleighton
  2. @jonleighton

    Fix #4046.

    jonleighton authored
Commits on Dec 21, 2011
  1. @lest
Commits on Dec 15, 2011
  1. @jonleighton
  2. @jonleighton
Commits on Dec 14, 2011
  1. @jonleighton
Commits on Dec 1, 2011
  1. @jonleighton

    Remove the need for type_cast_attribute.

    jonleighton authored
    This is good because it reduces duplication.
  2. @jonleighton

    Remove unnecessary *args

    jonleighton authored
Commits on Sep 13, 2011
  1. @jonleighton

    Stop trying to be clever about when to define attribute methods.

    jonleighton authored
    There is no meaningful performance penalty in defining attribute
    methods, since it only happens once.
    
    There is also no reason *not* to define them, since they get thrown in
    an included module, so they will not 'overwrite' anything. In fact, this
    is desirable, since it allows us to call super.
Something went wrong with that request. Please try again.