Permalink
Commits on Dec 22, 2004
  1. @dhh

    Releasing Rails 0.9.2

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@260 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  2. @dhh

    Added scope option to validation_uniqueness #349 [Kent Sibilev]

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@259 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  3. @dhh

    Added allow_nil options to validates_inclusion_of so that validation …

    …is only triggered if the attribute is not nil [what-a-day]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  4. @dhh

    Added work-around for PostgreSQL and the problem of getting fixtures …

    …to be created from id 1 on each test case. This only works for auto-incrementing primary keys called "id" for now #359 [Scott Baron]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@257 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  5. @dhh

    Fixed UrlHelper#link_to_unless so it doesn't care if the id is a stri…

    …ng or fixnum [zenspider]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  6. @dhh

    You should redirect externally on the default action

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@255 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  7. @dhh

    Forgot to include the new session module

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  8. @dhh

    Fixed mixin test and fixtures to work with postgresql #353 [Scott Baron]

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  9. @dhh

    Added Base#clear_association_cache to empty all the cached associations

    #347 [Tobias Luetke]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  10. @dhh

    Added search through session to clear out association caches at the e…

    …nd of each request. This makes it possible to place Active Record objects in the session without worrying about stale data in the associations (the main object is still subject to caching, naturally) #347 [Tobias Luetke]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  11. @dhh

    Added more informative exception when using helper :some_helper and t…

    …he helper requires another file that fails, you'll get an error message tells you what file actually failed to load, rather than falling back on assuming it was the helper file itself #346 [dblack]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  12. @dhh

    Added more informative exceptions in establish_connection #356 [bitsw…

    …eat]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  13. @dhh

    Fixed that options[:counter_sql] was overwritten with interpolated sq…

    …l rather than original sql #355 [bitsweat]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  14. @dhh

    Fixed that overriding an attribute's accessor would be disregarded by…

    … add_on_empty and add_on_boundary_breaking because they simply used the attributes[] hash instead of checking for @base.respond_to?(attr.to_s). [Marten]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  15. @dhh

    Fixed CTRL-C exists from the Breakpointer to be a clean affair withou…

    …t error dumping [Kent Sibilev]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@246 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  16. @dhh

    Fixed "rake stats" to work with sub-directories in models and control…

    …lers and to report the code to test ration [Scott Baron]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  17. @dhh

    Fixed that Base.table_name would expect a parameter when used in has_…

    …and_belongs_to_many joins [Anna Lissa Cruz]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  18. @dhh

    The dispatcher should reload the associations AFTER clearing the inhe…

    …ritable variables, not before, or callbacks and others wont work
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@243 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
  19. @dhh

    Fixed that nested transactions now work by letting the outer most tra…

    …nsaction have the responsibilty of starting and rolling back the transaction. If any of the inner transactions swallow the exception raised, though, the transaction will not be rolled back. So always let the transaction bubble up even when you've dealt with local issues. Closes #231 and #340.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 22, 2004
Commits on Dec 21, 2004
  1. @dhh

    Fixed validates_{confirmation,acceptance}_of to only happen when the …

    …virtual attributes are not nil #348 [dpiddy@gmail.com]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 21, 2004
  2. @dhh

    Added acts instead of mixins

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 21, 2004
  3. @dhh

    Fixed regression with Base#reset_session that wouldn't use the the DE…

    …FAULT_SESSION_OPTIONS [adam@the-kramers.net]
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 21, 2004
  4. @dhh

    Fixed error rendering of rxml documents to not just swallow the excep…

    …tion and return 0 (still not guessing the right line, but hey)
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 21, 2004
Commits on Dec 20, 2004
  1. @dhh

    Deal with associated classes that doesnt reside in their own files

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 20, 2004
  2. @dhh

    Checked in the proper version of const_missing

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 20, 2004
  3. @dhh

    Forgot a "or" in Inflector

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 20, 2004
  4. @dhh

    Switched strategy on the id_before_type_cast problem and just did an …

    …explicit method so postgresql wouldnt choke on id is null
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 20, 2004
  5. @dhh

    Added a require_association hook on const_missing that makes it possi…

    …ble to use any model class without requiring it first. Added that Active Record associations are now reloaded instead of cleared to work with the new const_missing hook in Active Record.
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 20, 2004
Commits on Dec 19, 2004
  1. @dhh

    Pulling attributes_from_column_definition should set the primary id t…

    …o nil instead of not at all
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 19, 2004
  2. @dhh

    Scrap that

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 19, 2004
  3. @dhh

    Dont define respond_to? lookups for primary key

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 19, 2004
  4. @dhh

    FormHelper should only use *_before_type_cast if they available on th…

    …e model
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 19, 2004
  5. @dhh

    Changed the interface on AbstractAdapter to require that adapters ret…

    …urn the number of affected rows on delete and update operations. Added that Base.update_all and Base.delete_all return an integer of the number of affected rows #341
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 19, 2004
  6. @dhh

    Added that query benchmarking will only happen if its going to be log…

    …ged anyway #344
    
    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 19, 2004
  7. @dhh

    Reworded a few doc things for better comprehension [dblack]

    git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
    dhh committed Dec 19, 2004