Skip to content
This repository

Nov 06, 2005

  1. Jeremy Kemper

    r2915@asus: jeremy | 2005-11-06 05:02:53 -0800

     Rename Base.constrain to Base.with_scope so it doesn't conflict with existing concept of database constraints.  Make scoping more robust: uniform method => parameters, validated method names and supported finder parameters, raise exception on nested scopes.
    
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2888 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Nov 04, 2005

  1. David Heinemeier Hansson

    Added extension capabilities to has_many and has_and_belongs_to_many …

    …proxies [DHH] Added find_or_create_by_X as a second type of dynamic finder that'll create the record if it doesn't already exist [DHH] Added constrain scoping for creates using a hash of attributes bound to the :creation key [DHH]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh authored

Nov 02, 2005

  1. Jeremy Kemper

    Correct reader method generation for primary key attribute: handle ca…

    …se when primary_key is defined but its column is nil, such as when the model class is backed by a view.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Nov 01, 2005

  1. Jeremy Kemper

    A missing primary key column shouldn't raise an error when generating…

    … its error message.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Oct 28, 2005

  1. David Heinemeier Hansson

    Added migration support to SQL Server adapter (please someone do the …

    …same for Oracle and DB2) (closes #2625) [Tom Ward]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2778 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh authored
  2. Jeremy Kemper

    r3800@sedna: jeremy | 2005-10-28 00:39:05 -0700

     Readonly constraints, association collection method_missing, dup constraint options
    
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2774 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Oct 26, 2005

  1. David Heinemeier Hansson

    Added :offset and :limit to the kinds of options that Base.constrain …

    …can use (closes #2466) [duane.johnson@gmail.com]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh authored

Oct 25, 2005

  1. Jeremy Kemper

    r2736@asus: jeremy | 2005-10-24 17:08:12 -0700

     Test for eager associations with limits should not assume that records are ordered by id.
     r2737@asus:  jeremy | 2005-10-24 19:06:09 -0700
     Fail fast if invalid primary key column.
     r2746@asus:  jeremy | 2005-10-25 15:37:28 -0700
     Begin rollback of fixture delete order.  Its solves a problem for 1% of users who already have a workaround while severely slowing down the other 99%.
     r2747@asus:  jeremy | 2005-10-25 16:03:01 -0700
     Rollback the rest.
     r2748@asus:  jeremy | 2005-10-25 16:06:26 -0700
     Re-add fixtures declaration to conditions scoping test
     r2749@asus:  jeremy | 2005-10-25 16:09:03 -0700
     Re-add fixtures declaration to finder test
     r2750@asus:  jeremy | 2005-10-25 16:13:50 -0700
     Don't assume keyboards table is empty
    
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Oct 24, 2005

  1. Jeremy Kemper

    r2726@asus: jeremy | 2005-10-24 14:11:59 -0700

     correct primary key semantics: foo.id and foo.real_pk_column should both exist and return nil if foo.new_record?
    
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Oct 22, 2005

  1. Jeremy Kemper

    Clarify semantics of ActiveRecord::Base#respond_to? Closes #2560.

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Oct 20, 2005

  1. Jeremy Kemper

    HABTM finder sets :readonly => false. Closes #2525.

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Oct 18, 2005

  1. Jeremy Kemper

    Parenthesize :conditions

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Oct 16, 2005

  1. Jeremy Kemper

    r3616@asus: jeremy | 2005-09-26 23:09:28 -0700

     Ticket 2292 - Sequences, schemas, and fixtures
     r3917@asus:  jeremy | 2005-10-15 10:43:24 -0700
     fix pk assert
     r3918@asus:  jeremy | 2005-10-15 10:46:52 -0700
     rework query cache connection= override
     r3919@asus:  jeremy | 2005-10-15 10:47:45 -0700
     correct fixtures usage
     r3920@asus:  jeremy | 2005-10-15 10:53:23 -0700
     correct attr assignment
     r3921@asus:  jeremy | 2005-10-15 12:59:10 -0700
     sequences
     r3922@asus:  jeremy | 2005-10-15 16:36:09 -0700
     reset fixtures work with sequences
     r3951@asus:  jeremy | 2005-10-15 23:23:12 -0700
     cut down excess features
     r3952@asus:  jeremy | 2005-10-15 23:40:30 -0700
     don't test for PostgreSQL specifically
    
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2639 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Oct 15, 2005

  1. Jamis Buck

    Allow ARStore::Session to indicate that it should not be reloaded in …

    …dev mode
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jamis authored
  2. Jamis Buck

    squash the memleak in dev mode finally (fingers crossed, here)

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2620 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jamis authored
  3. Eliminate an obsolete comment.

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2601 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored
  4. Jeremy Kemper

    r3618@sedna: jeremy | 2005-10-14 12:06:03 -0700

     Branch for :join tainting
     r3631@sedna:  jeremy | 2005-10-14 20:13:49 -0700
     Introduce read-only records, object.readonly\!, object.readonly?, Foo.find(:all, :readonly => true).  Foo.find(:all, :joins => '...') also implies :readonly => true.
    
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2594 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Oct 14, 2005

  1. Change quote delimiters for sql interpolation to obviate SyntaxErrors…

    …. Closes 2215. [leroen@gmail.com]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2593 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored
  2. Jamis Buck

    Avoid memleak in dev mode with fastcgi

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jamis authored

Oct 13, 2005

  1. Delegate access to a customized primary key to the conventional id me…

    …thod. Closes #2444.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2569 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored
  2. Sam Stephenson

    Support using different database adapters for development and test wi…

    …th ActiveRecord::Base.schema_format = :ruby
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2549 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    sstephenson authored

Oct 12, 2005

  1. Deprecated ActiveRecord::Base.threaded_connection in favor of ActiveR…

    …ecord::Base.allow_concurrency.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2542 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored
  2. Protect id attribute from mass assigment even when the primary key is…

    … set to something else. Closes #2438.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2541 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored

Oct 11, 2005

  1. Misc doc fixes (typos/grammar/etc.). Closes #2430.

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2533 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored
  2. Speed up for unthreaded environments. Closes #2431.

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2530 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored

Oct 10, 2005

  1. Speed up the setting of table_name. Closes #2428.

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored

Oct 09, 2005

  1. Optimize instantiation of STI subclass records. In partial fullfilmen…

    …t of #1236.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored
  2. Fix typo of 'constrains' to 'contraints'. Closes #2069.

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored

Oct 07, 2005

  1. Jeremy Kemper

    Don't tell me about defined reader methods, even at debug level.

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2489 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored
  2. Add option (true by default) to generate reader methods for each attr…

    …ibute of a record to avoid the overhead of calling method missing. In partial fullfilment of #1236.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored

Oct 06, 2005

  1. Add convenience predicate methods on Column class. In partial fullfil…

    …ment of #1236.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored
  2. Raise an exception when invalid options are passed to ActiveRecord::B…

    …ase.find. Closes #2363.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    Marcel Molina authored
  3. Michael Koziarski

    Quote booleans according the rules defined by the adapter

    * SQLite schema has been updated
    * Postgresql schema needs to be fixed too
    Simplify AR::Base#toggle to store the boolean, not the quoted value
    * expand the tests
    
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    NZKoz authored

Oct 02, 2005

  1. Jeremy Kemper

    Association validation does not belong in a before_save callback: mov…

    …e it into a validation method. Restores the expected model.valid? == model.save. Add tests for cancelling save by returning false from a before_save callback. Remove assumption that before_destroy's return value indicates whether the record was destroyed.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    jeremy authored

Sep 27, 2005

  1. Scott Barron

    Fix serialization problem with YAML in 1.8.3

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2360 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    rubyist authored
Something went wrong with that request. Please try again.