Michael Koziarski
|
1902ef6caa
|
Give DateTime correct .to_s implementations, lets it play nice with ActiveRecord quoting. [gbuesing] Closes #7649
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6263 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-27 23:25:16 +00:00 |
|
Michael Koziarski
|
203932ec88
|
Add File.atomic_write to prevent users from seeing half written files. Useful for situations like Page Caching and the like. [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-27 23:16:06 +00:00 |
|
Jeremy Kemper
|
df7ca38d7d
|
session_enabled? works with session :off. Closes #6680.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-27 06:36:25 +00:00 |
|
Rick Olson
|
88876163f9
|
boot.rb sets RAILS_ROOT, so remove that. Install http plugins inside a Dir.chdir block so that the cwd doesn't change
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-27 03:15:44 +00:00 |
|
Rick Olson
|
81ae38580b
|
set the RAILS_ROOT for script/plugin if it's not set already
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-27 02:59:28 +00:00 |
|
David Heinemeier Hansson
|
34f1413b48
|
Added assumption that all plugin creators desire to be sharing individuals and release their work under the MIT license [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-27 01:23:43 +00:00 |
|
Jeremy Kemper
|
9ea68721ac
|
mysql.rb ignores IOError in finalizer when socket is already closed
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-26 21:40:50 +00:00 |
|
David Heinemeier Hansson
|
b8cd80550f
|
Added :port and :host handling to UrlRewriter (which unified url_for usage, regardless of whether it's called in view or controller) #7616 [alancfrancis]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:22:09 +00:00 |
|
David Heinemeier Hansson
|
cd4dbd8cd2
|
Doc fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:19:24 +00:00 |
|
David Heinemeier Hansson
|
9b46f69381
|
Allow send_file/send_data to use a registered mime type as the :type parameter #7620 [jonathan]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:16:58 +00:00 |
|
David Heinemeier Hansson
|
784298008b
|
Allow routing requirements on map.resource(s) (closes #7633) [quixoten]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:13:19 +00:00 |
|
David Heinemeier Hansson
|
b203b9b55b
|
Fixed broken test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:11:18 +00:00 |
|
David Heinemeier Hansson
|
793c9ff68d
|
Moved perform_caching test set up into test's setup to fix a dependence fragility (closes #7640)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 19:53:14 +00:00 |
|
David Heinemeier Hansson
|
ee2b5dda80
|
Added source-annotations extractor tasks to rake [Jamis Buck]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 19:40:37 +00:00 |
|
David Heinemeier Hansson
|
23e24c5996
|
Setting fixtures automatically for integration tests is a bit harder -- will have to wait until the test superclass reform is implemented
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 19:27:56 +00:00 |
|
David Heinemeier Hansson
|
87b7b5b3e7
|
Added fixtures :all to test_helper.rb to assume that most people just want all their fixtures loaded all the time [DHH] Added fixtures :all as a way of loading all fixtures in the fixture directory at once (closes #7214) [manfred]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 17:31:43 +00:00 |
|
Jeremy Kemper
|
781985f7f2
|
Cookie session store: empty and unchanged sessions don't write a cookie.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 16:35:24 +00:00 |
|
Michael Koziarski
|
c9770d8a5a
|
Allow users to provide custom formatters to Logger. [aeden] Closes #7106, #2484
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 00:07:54 +00:00 |
|
Rick Olson
|
ad9bacb189
|
fix app generator
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-24 22:36:52 +00:00 |
|
David Heinemeier Hansson
|
08a533645e
|
Make it a default assumption that you want all helpers, all the time (yeah, yeah)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6222 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-24 20:33:47 +00:00 |
|
David Heinemeier Hansson
|
f95dfff966
|
Added helper(:all) as a way to include all helpers from app/helpers/**/*.rb in ApplicationController [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-24 20:31:34 +00:00 |
|
David Heinemeier Hansson
|
351eea1fcd
|
No s on config
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-23 01:10:25 +00:00 |
|
David Heinemeier Hansson
|
7bf757d8b8
|
Include two default initializers as examples
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-23 00:53:22 +00:00 |
|
David Heinemeier Hansson
|
c6d6082562
|
Added config/initializers where all ruby files within it are automatically loaded after the Rails configuration is done, so you don't have to litter the environment.rb file with a ton of mixed stuff [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-23 00:32:27 +00:00 |
|
David Heinemeier Hansson
|
b50a05cac3
|
Move session settings closer together
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-23 00:09:22 +00:00 |
|
Jamis Buck
|
f9a4774e0e
|
Make sure parsed emails recognize attachments nested in multpart parts (closes #6714)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6207 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 19:04:00 +00:00 |
|
Jamis Buck
|
b6923c2b29
|
Fix broken tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 19:02:14 +00:00 |
|
Jeremy Kemper
|
f2fb711152
|
Ruby 1.8.6 compatibility.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 11:00:06 +00:00 |
|
Jeremy Kemper
|
236fe10fe9
|
Integration tests: introduce methods for other HTTP methods. Closes #6353.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 09:28:10 +00:00 |
|
Jeremy Kemper
|
f425bba9cf
|
Use the query cache iff Active Record is configured.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 08:14:47 +00:00 |
|
Jeremy Kemper
|
c8f7860d50
|
CGI escape the session cookie.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 01:17:28 +00:00 |
|
Jeremy Kemper
|
223509ba7d
|
Oops, don't omit the session_key since it's used as the cookie name.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 01:07:51 +00:00 |
|
Jeremy Kemper
|
5a1251dc2d
|
Session configuration in config/environment.rb instead of app/controllers/application.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 00:57:02 +00:00 |
|
Jeremy Kemper
|
45dd256889
|
Missed commit for [6184]. Generate a random secret for new app's cookie session store.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 23:13:32 +00:00 |
|
David Heinemeier Hansson
|
25bb98e42d
|
Added database connection as a yield parameter to ActiveRecord::Base.transaction so you can manually rollback [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 22:13:39 +00:00 |
|
Tobias Lütke
|
7842caed94
|
Fixed query cache when multiple database connections were involved
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 21:54:41 +00:00 |
|
Tobias Lütke
|
2ffbc6115e
|
Enable active record cache automatically for all actions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 18:08:39 +00:00 |
|
David Heinemeier Hansson
|
9b854c22b1
|
Added subdirectory test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 15:58:42 +00:00 |
|
David Heinemeier Hansson
|
7f55931f80
|
Make sure that the filesystem is not involved with asset hosting
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6187 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 15:28:37 +00:00 |
|
Jeremy Kemper
|
de0a0d700e
|
Routing: better support for escaped values in route segments. Closes #7544.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 10:05:07 +00:00 |
|
Jeremy Kemper
|
f29857690f
|
Introduce a cookie-based session store as the Rails default. Sessions typically contain at most a user_id and flash message; both fit within the 4K cookie size limit. A secure hash is included with the cookie to ensure data integrity (a user cannot alter his user_id without knowing the secret key included in the hash). If you have more than 4K of session data or don't want your data to be visible to the user, pick another session store. Cookie-based sessions are dramatically faster than the alternatives.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6184 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 09:17:38 +00:00 |
|
David Heinemeier Hansson
|
2afc01b7ce
|
Make assert_select access content_type through accessor instead of header
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 00:40:58 +00:00 |
|
David Heinemeier Hansson
|
21187c0fb4
|
Apply the rest of Chads patch
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 00:29:44 +00:00 |
|
Tobias Lütke
|
b5419cd66e
|
You can now use cache in instance hierachies. This allows ActiveRecord::Base.cache { } usage to cache everything
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-20 23:42:04 +00:00 |
|
David Heinemeier Hansson
|
e105653066
|
Added .erb and .builder as preferred aliases to the now deprecated .rhtml and .rxml extensions [Chad Fowler]. This is done to separate the renderer from the mime type. .erb templates are often used to render emails, atom, csv, whatever. So labeling them .rhtml doesn't make too much sense. The same goes for .rxml, which can be used to build everything from HTML to Atom to whatever. .rhtml and .rxml will continue to work until Rails 3.0, though. So this is a slow phasing out. All generators and examples will start using the new aliases, though.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-20 22:09:12 +00:00 |
|
Michael Koziarski
|
89cb34c9cf
|
Stop swallowing errors during rake test [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-20 03:15:26 +00:00 |
|
Jeremy Kemper
|
772e02dd62
|
Factor out unique id generator. Expose cgi to session store.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 23:51:25 +00:00 |
|
David Heinemeier Hansson
|
9e4c8b8858
|
Fix tests depending too deep
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 02:25:01 +00:00 |
|
David Heinemeier Hansson
|
94fa0ed053
|
Its ETag not Etag
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 02:10:19 +00:00 |
|
David Heinemeier Hansson
|
bd0cd04374
|
Set cache-control to private if theres an etag available (and the cache-control hasnt been overwritten already)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 02:04:26 +00:00 |
|