Commit Graph

3510 Commits

Author SHA1 Message Date
Rick Olson
9bfcfa8d8f preliminary support for plugin meta files
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4362 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-23 06:34:25 +00:00
Jeremy Kemper
6ce3bf70a2 follow_redirect doesn't complain about being redirected to the same controller. Closes #5153.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-22 22:59:56 +00:00
Jeremy Kemper
3de8239a7c Session migration generator obeys pluralize_table_names. Closes #5145.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4360 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-22 21:09:47 +00:00
Marcel Molina
f91096a543 Normalize classify's argument to a String so that it plays nice with Symbols. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-22 15:17:45 +00:00
Rick Olson
213992195d Add docs for the :as option in has_one associations. Closes #5144 [cdcarter@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4358 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-22 08:00:05 +00:00
David Heinemeier Hansson
cc1c943aa1 Make Oracle happy
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4357 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 22:17:56 +00:00
Marcel Molina
738c43c549 Add modifications to database rake tasks as part of #5139. [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 20:17:22 +00:00
David Heinemeier Hansson
b5a6ba6833 Minor style tweaks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4355 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 19:20:14 +00:00
David Heinemeier Hansson
66586bc168 Fixed that has_many collections shouldn't load the entire association to do build or create [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 19:17:37 +00:00
David Heinemeier Hansson
59c8c63ecd Added :allow_nil option for aggregations (closes #5091) [ian.w.white@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 17:32:37 +00:00
David Heinemeier Hansson
fa207c2446 Disabling sessions is not a common day event
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4352 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 16:51:46 +00:00
Marcel Molina
d22f9c9488 Fix Oracle boolean support and tests. Closes #5139. [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 15:13:28 +00:00
Marcel Molina
422cba934c Strip out leading schema name in classify. References #5139. [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 15:11:00 +00:00
Nicholas Seckar
04fb7c30e3 Remove Enumerable#first_match in favor of using break(result_for_each)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 01:42:36 +00:00
Jeremy Kemper
c50113bc61 create! no longer blows up when no attributes are passed and a :create scope is in effect (e.g. foo.bars.create! failed whereas foo.bars.create!({}) didn't.)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-19 01:05:20 +00:00
Jeremy Kemper
0cd883e1e1 Change the request.env example in AC::Base docs to a var that exists (REMOTE_IP doesn't) and isn't already wrapped by a request method (i.e. request.remote_ip). Closes #5113.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-17 19:52:06 +00:00
Marcel Molina
7252666b74 Add layout attribute to response object with the name of the layout that was rendered, or nil if none rendered. [Kevin Clark kevin.clark@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-17 07:25:36 +00:00
Marcel Molina
36d1a2f302 Make Array#in_groups_of just return the grouped collection if a block isn't given. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-17 05:12:53 +00:00
Michael Koziarski
ff96498848 performance enhancement for previous patch [skaes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-16 21:09:41 +00:00
Michael Koziarski
d153525c53 Fix NoMethodError when parsing params like &&. [Adam Greenfield]. Closes #4955
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-16 20:56:41 +00:00
Rick Olson
be3a4849a9 Call Inflector#demodulize on the class name when eagerly including an STI model. Closes #5077 [info@loobmedia.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-15 14:08:51 +00:00
Marcel Molina
6ef5b747b3 Fix flip flopped logic in docs for url_for's :only_path option. Closes #4998. [esad@esse.at]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4341 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-14 19:03:14 +00:00
Marcel Molina
9c5591da2d Preserve MySQL boolean column defaults when changing a column in a migration. Closes #5015. [pdcawley@bofh.org.uk]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-14 18:37:22 +00:00
Marcel Molina
f2b3deb85c Don't destroy a HashWithIndifferentAccess if symbolize_keys! or stringify_keys! is called on it. Closes #5076. [Marcel Molina Jr., guy.naor@famundo.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-14 18:17:30 +00:00
Jeremy Kemper
f9f65433ef Wipe those tears.. References [4335].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-12 05:15:17 +00:00
Jeremy Kemper
942132bda2 rake test:recent understands subdirectories. Closes #2925.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4337 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-12 04:41:23 +00:00
Jeremy Kemper
a61c1825ab The app generator detects the XAMPP package's MySQL socket location. Closes #3832.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-12 04:06:41 +00:00
Jeremy Kemper
491b4a3c84 PostgreSQL: migrations support :limit with :integer columns by mapping limit < 4 to smallint, > 4 to bigint, and anything else to integer. Closes #2900.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-12 03:59:43 +00:00
Jeremy Kemper
c069f361f0 form.text_area handles the :size option just like the original text_area (:size => '60x10' becomes cols="60" rows="10")
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-11 16:36:59 +00:00
Marcel Molina
0a407bca50 ActionMailer::Base documentation rewrite. Closes #4991 [Kevin Clark, Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-10 05:38:43 +00:00
Jeremy Kemper
5a960d2568 Excise ingrown code from FormOptionsHelper#options_for_select. Closes #5008.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-09 05:19:32 +00:00
Jeremy Kemper
d249ff579a Trim typo.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-08 18:10:40 +00:00
Jeremy Kemper
befd62c2fc Document Active Support's Module::delegate. Closes #5002.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-08 18:04:07 +00:00
Jeremy Kemper
0adcd811f9 The app generator sets a session key in application.rb so apps running on the same host may distinguish their cookies. Closes #2967.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-07 08:28:42 +00:00
Jeremy Kemper
d08d89c092 Dates and times interpret empty strings as nil rather than 2000-01-01. Closes #4830.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-07 07:52:08 +00:00
Jeremy Kemper
d59f3a78a4 uniq preserves order. References [4325].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-07 02:03:25 +00:00
Jeremy Kemper
50f538b72b Allow :uniq => true with has_many :through associations.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-06 23:37:56 +00:00
David Heinemeier Hansson
e012304175 Distinguish the spawners for different processes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-02 22:39:48 +00:00
David Heinemeier Hansson
2b0a1f4a21 Added -n/--process to script/process/spawner name the process pid (default is dispatch) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-02 22:32:45 +00:00
David Heinemeier Hansson
d1d8657ea6 Added -n/--process to script/process/spawner name the process pid (default is dispatch) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4322 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-02 22:18:20 +00:00
Scott Barron
0bc2485eac Add README to gem [Dave Thomas]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-01 21:33:34 +00:00
David Heinemeier Hansson
ff0b76613a Make the inspector work on debian (closes #4935) [Lars pind]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-01 17:28:55 +00:00
Rick Olson
04ef7f4be6 Small fix in routing to allow dynamic routes (broken after [4242]) [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-30 21:06:49 +00:00
Rick Olson
325cb1269c Namespaced OrderedHash so the Rails implementation does not clash with any others. (fixes #4911) [Julian Tarkhanov]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-30 20:36:37 +00:00
Rick Olson
59bd6586c8 Add Integration Session methods for PUT and DELETE requests [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-30 20:17:06 +00:00
Marcel Molina
4daf2c1ee6 Use reverse_each rather than reverse.each. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-30 08:06:45 +00:00
Marcel Molina
68ab908716 Ensure that StringIO is always available for the Schema dumper. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-30 02:40:06 +00:00
Marcel Molina
3fec943aca Allow AR::Base#to_xml to include methods too. Closes #4921. [johan@textdrive.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-29 23:00:47 +00:00
Marcel Molina
aa72c465ec Replace superfluous name_to_class_name variant with camelize. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4313 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-29 20:34:31 +00:00
Marcel Molina
9f92dd3984 Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-29 20:20:22 +00:00