David Heinemeier Hansson
5779deb88d
Refactored select routing for SQL Server adapter ( closes #5683 ) [tom@popdog.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4671 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 21:18:12 +00:00
David Heinemeier Hansson
c99df461f4
Fixed that default timezones for new / initialize should uphold utc setting ( closes #5709 ) [daniluk@yahoo.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 20:50:26 +00:00
David Heinemeier Hansson
5130fc84c6
Remove duplicate routes from mapped resources ( closes #5712 ) [eigentone@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 20:46:49 +00:00
David Heinemeier Hansson
01e389c965
Remove unnecessary brackets in regex ( closes #5715 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 20:44:35 +00:00
David Heinemeier Hansson
5fd2fffcf6
Call an inspector for inspector
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 20:44:27 +00:00
Jeremy Kemper
0e73a92c04
DeprecatedInstanceVariableProxy stand-in for @request, @attributes, and friends.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 06:33:28 +00:00
Michael Koziarski
6c50597489
Short documentation to mention use of Mime::Type.register. Closes #5710 [choonkeat@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 02:00:04 +00:00
Jeremy Kemper
12ab93b72b
Make controller_path available as an instance method. Closes #5724 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 01:56:58 +00:00
Jeremy Kemper
604eb8ab95
Fix announcement of very long migration names. Closes #5722 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 01:39:57 +00:00
Jeremy Kemper
c1c940feb7
./script/generate usage. Closes #5721 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-05 01:34:01 +00:00
David Heinemeier Hansson
6b5ef885d9
The white space inquisition is coming for you!
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-04 16:47:48 +00:00
Nicholas Seckar
f39180eded
Fix broken query parameter tests
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-04 16:03:21 +00:00
David Heinemeier Hansson
2d6ca64c45
Make us pass to ease RESTful children posts
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-04 00:45:09 +00:00
David Heinemeier Hansson
6e842f216c
Make us pass to ease RESTful children posts
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-04 00:15:09 +00:00
Marcel Molina
08f40a5e06
Fix typo in caching docs. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-04 00:02:44 +00:00
Marcel Molina
d17bd6a043
Make action caching aware of different formats for the same action so that, e.g. foo.xml is cached separately from foo.html. Implicitly set content type when reading in cached content with mime revealing extensions so the entire onous isn't on the webserver. PDI MORE CACHING TESTS [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4656 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-03 23:59:38 +00:00
Jeremy Kemper
58ebf302b2
The exists? class method should treat a string argument as an id rather than as conditions. Closes #5698 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-03 22:06:33 +00:00
Jeremy Kemper
149d181562
Thoroughly document inflections. Closes #5700 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-03 21:29:07 +00:00
David Heinemeier Hansson
9d00b0ce85
Added Module#alias_attribute [Jamis/DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-03 18:47:43 +00:00
David Heinemeier Hansson
b5c2366569
Fixed to_xml with :include misbehaviors when invoked on array of model instances ( closes #5690 ) [alexkwolfe@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-03 17:19:45 +00:00
David Heinemeier Hansson
8085cbfd08
Added support for conditions on Base.exists? ( closes #5689 ) [josh@joshpeek.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4651 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-03 17:16:43 +00:00
Jeremy Kemper
29ae3e9098
Schema dumper quotes date :default values.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-02 20:20:38 +00:00
Jamis Buck
49f44daf17
More tweaks to make sure assert_redirected_to works with symbols
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-01 21:34:58 +00:00
Jamis Buck
0cfde5f8c0
Make sure assert_respond_to works with symbol parameters
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-01 20:56:26 +00:00
Jeremy Kemper
7d01778139
Deprecation: easier to work with warning behavior as procs; default behaviors for each environment so users needn't update env.rb; and testing pleasure with assert_deprecated, assert_not_deprecated. Test prints to , dev logs, production ignores.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-01 11:12:38 +00:00
Jeremy Kemper
4f017bb1b0
more concise destroy test
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-01 07:33:17 +00:00
Jeremy Kemper
9ee5d54e4d
r4889@ks: jeremy | 2006-07-31 20:27:15 -0700
...
Create and update return the new pk and the number of affected rows, respectively. The job of returning true to appease the validations chain is up to create_or_update.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-01 03:35:04 +00:00
Rick Olson
58b996f9b0
Restrict Request Method hacking with ?_method to POST requests. [Rick Olson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4644 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-01 03:02:31 +00:00
Jeremy Kemper
c9417dcef3
Nested resource testing.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-01 01:23:06 +00:00
Jeremy Kemper
a247d72139
Nesting map.resources
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-01 00:29:02 +00:00
Rick Olson
78e37f45c6
Fix bug when passing multiple options to SimplyRestful, like :new => { :preview => :get, :draft => :get }. [Rick Olson, Josh Susser, Lars Pind]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 21:57:59 +00:00
Rick Olson
ab0277f220
Calculate sum with SQL, not Enumerable on HasManyThrough Associations. [Dan Peterson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4640 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 21:06:19 +00:00
Rick Olson
d2eafa8b73
Dup the options passed to map.resources so that multiple resources get the same options. [Rick Olson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4639 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 20:32:48 +00:00
Rick Olson
ed4c295c47
Fixed the new_#{resource}_url route and added named route tests for Simply Restful. [Rick Olson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 20:00:18 +00:00
David Heinemeier Hansson
865b175765
Added map.resources from the Simply Restful plugin (backwards incompatible with the plugin!) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 18:59:58 +00:00
Jeremy Kemper
ffaecb792e
r4886@ks: jeremy | 2006-07-31 00:01:55 -0700
...
comma
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4636 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 07:02:08 +00:00
Jeremy Kemper
dd664c33b7
r4880@ks: jeremy | 2006-07-30 23:52:59 -0700
...
Only set method_name = md.pre_match if the pre_match is an attribute. Plays nicely with other ? suffixed attribute methods.
r4881@ks: jeremy | 2006-07-30 23:53:37 -0700
Heavier testing for attribute method suffixes.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 06:54:06 +00:00
David Heinemeier Hansson
63ad8b4d19
Fixed that integration simulation of XHRs should set Accept header as well [Edward Frederick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4634 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 06:18:34 +00:00
David Heinemeier Hansson
df7efd7e21
Fixed that integration simulation of XHRs should set Accept header as well [Edward Frederick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 06:18:20 +00:00
Jeremy Kemper
2b3cc2478f
r4854@ks: jeremy | 2006-07-30 00:59:18 -0700
...
Attribute methods
r4877@ks: jeremy | 2006-07-30 20:23:53 -0700
Factor the attribute#{suffix} methods out of method_missing for easier extension.
r4878@ks: jeremy | 2006-07-30 20:42:23 -0700
More specific method naming, declare many attribute method suffixes, set up default suffixes at module include rather than lazily.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4632 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-31 03:43:03 +00:00
Rick Olson
efff453148
show missing file path on failed fixture_file_upload
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-30 16:16:46 +00:00
Michael Koziarski
d02c07dbb9
Ensure TestRequest#session always returns a TestSession [Koz]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4630 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-28 23:15:12 +00:00
Rick Olson
2e88b5d37f
Fixed the failsafe response so it uses either the current recognized controller or ApplicationController. [Rick Olson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-28 23:09:29 +00:00
Jamis Buck
99e9faeda8
Patch sql injection vulnerability when using integer or float columns.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-27 18:29:49 +00:00
Jamis Buck
d70d521955
Don't search a load-path of '.' for controller files, since it may include symlinks to all kinds of things and result in far too many irrelevant files being considered
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-27 15:31:07 +00:00
Nicholas Seckar
9d17f882ee
Update integration.rb to require test_process explicitly instead of via Dependencies
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-27 14:30:23 +00:00
Michael Koziarski
7692191f5a
Initial Version of Deprecation for Rails[Koz]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-27 00:10:06 +00:00
David Heinemeier Hansson
45e319d0f8
Added ICS to extension lookup recognition [Lars Pind]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-26 16:34:49 +00:00
Jeremy Kemper
89011da0de
BigDecimal: schema dumper formatting
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-24 17:14:48 +00:00
Rick Olson
971e03f24e
Allow #count through a has_many association to accept :include. [Dan Peterson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-24 04:55:16 +00:00