aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add support for interleaving migrations by storing which migrations have run ↵Rick Olson2008-04-0915-80/+204
| | | | | | in the new schema_migrations table. Closes #11493 [jordi] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActiveRecord::Base#sum defaults to 0 if no rows are returned. Closes #11550 ↵Rick Olson2008-04-083-1/+7
| | | | | | [kamal] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9243 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Automatically parse posted JSON content for Mime::JSON requests. [rick]Rick Olson2008-04-085-8/+47
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add json_escape ERB util to escape html entities in json strings that are ↵Rick Olson2008-04-083-14/+30
| | | | | | output in HTML pages. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't require rails/gem_builder during rails initialization, it's only ↵Rick Olson2008-04-085-7/+17
| | | | | | needed for the gems:build task. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* set ActiveSupport.escape_html_entities_in_json = false for new rails appsRick Olson2008-04-081-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add config.active_support.escape_html_entities_in_json to allow disabling of ↵Rick Olson2008-04-085-4/+31
| | | | | | html entity escaping. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve ActiveRecord::Base#table_name unit tests for nested classes. Closes ↵Josh Peek2008-04-072-0/+7
| | | | | | #10289. [scott_willson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* script/performance/profiler compatibility with the ruby-prof >= 0.5.0. ↵Josh Peek2008-04-072-1/+3
| | | | | | Closes #9176. [Catfish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that respond_to? considers dynamic finder methods. Closes #11538. ↵Pratik Naik2008-04-064-13/+106
| | | | | | [floehopper] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Provide a helper proxy to access helper methods from outside views. Closes ↵Josh Peek2008-04-063-0/+28
| | | | | | #10839 [Josh Peek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Split associations_test.rb into multiple files based on association type. ↵Pratik Naik2008-04-067-2382/+2445
| | | | | | [Pratik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that save on parent object fails for invalid has_one association. ↵Pratik Naik2008-04-063-0/+27
| | | | | | Closes #10518. [Pratik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove duplicate code from associations. [Pratik]Pratik Naik2008-04-066-164/+72
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor HasManyThroughAssociation to inherit from HasManyAssociation. ↵Pratik Naik2008-04-0610-95/+301
| | | | | | Association callbacks and <association>_ids= now work with hm:t. Closes #11516 [rubyruy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure HABTM#create and HABTM#build do not load entire association. [Pratik]Pratik Naik2008-04-055-34/+48
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Avoid modifying the sendmail_settings hash when using the return path. ↵Michael Koziarski2008-04-051-2/+3
| | | | | | Closes #7572 [billkirtley] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix more typos and changelogPratik Naik2008-04-054-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve documentation.Pratik Naik2008-04-0530-115/+177
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replaced callback method evaluation in AssociationCollection class to use ↵Josh Peek2008-04-044-32/+23
| | | | | | ActiveSupport::Callbacks. Modified ActiveSupport::Callbacks::Callback#call to accept multiple arguments. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make HABTM#create behave the same as << with after_add callbacks. Closes ↵Michael Koziarski2008-04-042-4/+18
| | | | | | #11374 [freels] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't double include DISTINCT when the user has already specified it. ↵Michael Koziarski2008-04-042-1/+8
| | | | | | Closes #11502 [kenneth.kalmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tiny change to allow AR based creation of TIME columns in sqlite. Closes ↵Michael Koziarski2008-04-041-1/+1
| | | | | | #11465 [h-lame] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9222 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Time #yesterday and #tomorrow behave correctly crossing DST boundary. Closes ↵Geoff Buesing2008-04-043-2/+56
| | | | | | #7399 [sblackstone] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update fcgi dispatcher test cases. Closes #11471 [guillaume]Jeremy Kemper2008-04-031-7/+23
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Bah, don't test TMail in AMJeremy Kemper2008-04-033-19/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: compare with same encodingJeremy Kemper2008-04-032-11/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: ascii encoding for quoted-printable regexpsJeremy Kemper2008-04-031-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* missed an added fileRick Olson2008-04-022-1/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for ↵Rick Olson2008-04-024-8/+40
| | | | | | native extensions. Closes #11513 [ddollar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TimeWithZone: Adding tests for dst and leap day edge cases when advancing timeGeoff Buesing2008-04-022-0/+37
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure RJS redirect_to doesn't html-escapes string argument. Closes #8546Pratik Naik2008-04-024-1/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that config.to_prepare dependency error. Closes #10520 [akaspick, Pratik]Pratik Naik2008-04-021-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert [9209] Use Hash#exceptPratik Naik2008-04-023-50/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9210 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Adding Hash#without Closes #7369 [eventualbuddha]Pratik Naik2008-04-023-0/+50
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* TimeWithZone#method_missing: send to utc to advance with dst correctness, ↵Geoff Buesing2008-04-023-18/+72
| | | | | | otherwise send to time. Adding tests for time calculations methods git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* spell checkRick Olson2008-04-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add config.active_support for future configuration options. Also, add more ↵Rick Olson2008-04-013-0/+15
| | | | | | new Rails 3 config settings to new_rails_defaults.rb [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add config.active_support.use_standard_json_time_format setting so that ↵Rick Olson2008-04-016-6/+31
| | | | | | Times and Dates export to ISO 8601 dates. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tweak ActiveRecord::Base#to_json to include a root value in the returned ↵Rick Olson2008-04-013-1/+47
| | | | | | hash: {post: {title: ...}} [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use class << selfDavid Heinemeier Hansson2008-04-011-18/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add efficient #include? to AssociationCollection (for has_many/has_many ↵Rick Olson2008-04-015-1/+98
| | | | | | :through/habtm). [stopdropandrew] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* gems should be specified before pluginsDavid Heinemeier Hansson2008-04-011-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added examples for config.gemDavid Heinemeier Hansson2008-04-011-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improving railties test coverage. Closes #11496 [miloops]Jeremy Kemper2008-04-015-3/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Partial updates off by defaultJeremy Kemper2008-04-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: toplevel AS reference within BasicObjectJeremy Kemper2008-04-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: encoding and multibyte test fixesJeremy Kemper2008-04-013-28/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9194 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: force encoding for binary comparison testsJeremy Kemper2008-04-012-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: work around YAML serialization error exposed by validations ↵Jeremy Kemper2008-04-012-20/+20
| | | | | | tests git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de