Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Apr 13, 2010
  1. @pixeltrix @wycats

    Refactor compute_type to handle situations where the correct class is…

    pixeltrix authored wycats committed
    … already loaded
    
    Signed-off-by: wycats <wycats@gmail.com>
  2. @wycats

    make ActiveRecord::Base.subclasses a public method

    Emmanuel Oga authored wycats committed
    Signed-off-by: wycats <wycats@gmail.com>
Commits on Apr 12, 2010
  1. @phs @josevalim

    table_name_prefix and table_name_suffix are class_attributes instead …

    phs authored josevalim committed
    …of cattr_accessors. [#4230]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Apr 9, 2010
  1. @spastorino @josevalim

    fix stack trace lines on class_eval

    spastorino authored josevalim committed
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Apr 8, 2010
  1. @lifo
Commits on Apr 5, 2010
  1. @fxn

    moves Object#singleton_class to Kernel#singleton_class to match Ruby …

    fxn authored
    …also there, same for #class_eval to simplify, and adds coverage for class_eval
Commits on Apr 4, 2010
  1. @pixeltrix
Commits on Mar 31, 2010
  1. @fxn

    Merge commit 'rails/master'

    fxn authored
Commits on Mar 30, 2010
  1. @wycats

    Replace the placeholder base_hook API with on_load. To specify some c…

    wycats authored
    …ode that
    
    should run during framework load do:
    
    ActiveSupport.on_load(:action_controller) do
      # Code run in the context of AC::Base
    end
Commits on Mar 29, 2010
  1. @josevalim
  2. @wycats
  3. @pixeltrix @wycats

    Add the ability to specify table_name_prefix on individual modules

    pixeltrix authored wycats committed
    Signed-off-by: wycats <wycats@gmail.com>
  4. @dhh
Commits on Mar 28, 2010
  1. @fxn
  2. @fxn
  3. @rizwanreza
Commits on Mar 25, 2010
  1. @miloops
Commits on Mar 17, 2010
  1. @jeremy

    Move require closer to home

    jeremy authored
  2. @tenderlove @jeremy

    fixing activerecord tests [#4205 state:resolved]

    tenderlove authored jeremy committed
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Commits on Mar 16, 2010
  1. @tenderlove @wycats

    clean up more warnings, remove unnecessary methods, fix eval line num…

    tenderlove authored wycats committed
    …bers. [#4193 state:resolved]
    
    Signed-off-by: wycats <wycats@gmail.com>
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

    speeding up clone_attributes, changing readonly to be initialized in …

    tenderlove authored wycats committed
    …def initialize
    
    Signed-off-by: wycats <wycats@gmail.com>
  2. @tenderlove @wycats

    cleaning up some test warnings

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

    Make many parts of Rails lazy. In order to facilitate this,

    wycats authored
    add lazy_load_hooks.rb, which allows us to declare code that
    should be run at some later time. For instance, this allows
    us to defer requiring ActiveRecord::Base at boot time purely
    to apply configuration. Instead, we register a hook that should
    apply configuration once ActiveRecord::Base is loaded.
    
    With these changes, brings down total boot time of a
    new app to 300ms in production and 400ms in dev.
    
    TODO: rename base_hook
  2. @tenderlove @jeremy

    converting inject to each and map

    tenderlove authored jeremy committed
    [#4119 state:committed]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Commits on Feb 26, 2010
  1. @josevalim

    fixed a 'RecordNotFound' bug when calling 'reload' on a object which …

    Tobias Bielohlawek authored josevalim committed
    …doesn't met the default_scope conditions, added test [#3166 status:resolved]
    
    The reload method didn't made use of 'with_exclusive_scope' when reloading the object. This lead to a RecordNotFound exception, in case the object doesn't met the default_scope condition (anymore) - which is obviously a bug. This quick fix makes use of with_exclusive_scope in the reload method as well. See test for full example.
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
  2. @hsume2 @josevalim

    Fix a bug where default_scope was overriding attributes given on mode…

    hsume2 authored josevalim committed
    …l initialization [#3218 status:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Feb 25, 2010
  1. @jeremy
Commits on Feb 21, 2010
  1. @josevalim

    Require persisted? in ActiveModel::Lint and remove new_record? and de…

    josevalim authored
    …stroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not.
Commits on Feb 16, 2010
  1. @sikachu @josevalim

    Rename Rails::Subscriber to Rails::LogSubscriber

    sikachu authored josevalim committed
Commits on Feb 12, 2010
  1. @lifo

    Move batch finders to Relation

    lifo authored
Commits on Feb 4, 2010
  1. @subbarao @jeremy

    removing , from ,= statement in WrappedDatabaseException constructor

    subbarao authored jeremy committed
    [#3830 state:committed]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Commits on Jan 23, 2010
  1. @lifo
Commits on Jan 21, 2010
  1. @lifo

    Revert "Refactoring attributes/types" [#3348 state:open]

    lifo authored
    This reverts commit f936a1f.
    
    Conflicts:
    
    	activerecord/lib/active_record.rb
    	activerecord/lib/active_record/base.rb
    
    Revert "Fixed: #without_typecast should only disable typecasting on the duplicated attributes" [#3387 state:open]
    
    This reverts commit 2831996.
    
    Reason :
    
      It's not generating attribute methods properly, making object.column 5x slower.
Commits on Jan 20, 2010
  1. @lifo

    Cache quoted_table_name

    lifo authored
Something went wrong with that request. Please try again.