David Heinemeier Hansson
7d42369071
Improved the silence method on the logger to ensure restoring the old level #1240 [bitsweat
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1277 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 17:20:18 +00:00
David Heinemeier Hansson
ea85fb6322
Missing test data
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 17:18:53 +00:00
David Heinemeier Hansson
a2eb744dfb
Added automatic decoding of base64 bodies #1214 [Jamis Buck]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1275 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 17:15:21 +00:00
David Heinemeier Hansson
c8bd316754
Changed that destroying an object will only freeze the attributes hash, which keeps the object from having attributes changed (as that wouldn't make sense), but allows for the querying of associations after it has been destroyed.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1274 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 16:48:07 +00:00
David Heinemeier Hansson
24a9050b6e
Changed the callbacks such that observers are notified before the in-object callbacks are triggered. Without this change, it wasn't possible to act on the whole object in something like a before_destroy observer without having the objects own callbacks (like deleting associations) called first.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 16:46:30 +00:00
David Heinemeier Hansson
74a612c4a1
Added that delivery errors are caught in a way so the mail is still returned whether the delivery was successful or not
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 15:03:13 +00:00
David Heinemeier Hansson
3135ec40a3
Added silencing to the default Logger class
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1271 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 11:41:24 +00:00
David Heinemeier Hansson
1edb807aff
Dont expire or read fragments if caching is turned off
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1270 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 07:49:55 +00:00
David Heinemeier Hansson
577a22c47e
Dont benchmark if the logger has been turned off
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1269 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 07:05:15 +00:00
David Heinemeier Hansson
dda5070e70
Started work on a per-request query cache
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 07:04:59 +00:00
David Heinemeier Hansson
cce294fd71
Started work on a per-request query cache
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1267 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 07:04:20 +00:00
David Heinemeier Hansson
5f77f64e92
Added option for passing an array to the find_all version of the dynamic finders and have it evaluated as an IN fragment
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1266 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 05:34:27 +00:00
Leon Breedt
a080b1a231
add support for structured types as input parameters to scaffolding,
...
fixes scaffolding for APIs like metaWeblog that require an input
struct (by dropping structs in nested <ul> lists).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1265 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-01 05:07:37 +00:00
David Heinemeier Hansson
b921b5da15
Fixed association picture reference
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 15:55:25 +00:00
David Heinemeier Hansson
2bf223051e
Added compatibility with camelCase column names for dynamic finders #533 [Dee.Zsombor]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1263 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 15:49:28 +00:00
David Heinemeier Hansson
eefe4d0ddd
Fixed extraneous comma in count() function that made it not work with joins #1156 [jarkko/Dee.Zsombor]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 15:45:15 +00:00
David Heinemeier Hansson
54f2d1d944
Added console --profile for profiling an IRB session #1154 [bitsweat]. Changed console_sandbox into console --sandbox #1154 [bitsweat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 15:37:45 +00:00
David Heinemeier Hansson
e6f3e5d900
Fixed action/fragment caching using the filestore when a directory and a file wanted to to use the same name. Now there's a .cache prefix that sidesteps the conflict #1188 [imbcmdth@hotmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1260 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 15:29:27 +00:00
David Heinemeier Hansson
787951348b
Fixed incompatibility with Base#find with an array of ids that would fail when using eager loading #1186 [Alisdair McDiarmid]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1259 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 14:04:01 +00:00
David Heinemeier Hansson
9f1b57779f
Fixed that validate_length_of lost :on option when :within was specified #1195 [jhosteny@mac.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 14:02:03 +00:00
David Heinemeier Hansson
537efa36d0
Doc fix #1200
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1257 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 13:36:40 +00:00
David Heinemeier Hansson
06f1895ac6
A few more tests #1199
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 13:24:43 +00:00
David Heinemeier Hansson
9ede45f60f
Added encoding and min_messages options for PostgreSQL #1205 [shugo]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1255 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 13:21:47 +00:00
David Heinemeier Hansson
90b08c5b92
Fixed documentation #1214
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:50:10 +00:00
David Heinemeier Hansson
98306bed05
Fixed missing id uniqueness in FormTag#radio_button #1207 [Jarkko]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:46:22 +00:00
David Heinemeier Hansson
14860ebe82
Added commented out tests for staying either singular or plural on inflection
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:39:28 +00:00
David Heinemeier Hansson
b4fe4daa84
Fixed assert_redirected_to to work with :only_path => false #1204 [Alisdair McDiarmid]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:34:02 +00:00
David Heinemeier Hansson
c29cfe389e
Check definition on constant not string
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:33:25 +00:00
David Heinemeier Hansson
6d0ddd818a
Fixed render_partial_collection to output an empty string instead of nil when handed an empty array #1202 [Ryan Carver]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:29:50 +00:00
David Heinemeier Hansson
5640f76970
Improved the speed of regular expression expirations for caching by a factor of 10 #1221 [Jamis Buck]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:23:42 +00:00
David Heinemeier Hansson
be27caf92d
Fixed that email address like "Jamis Buck, M.D." <wild.medicine@example.net> would cause the quoter to generate emails resulting in "bad address" errors from the mail server #1220 [Jamis Buck]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:21:54 +00:00
David Heinemeier Hansson
fe00c275cd
Removed dumping of template assigns on the rescue page as it would very easily include a ton of data making page loads take seconds (and the information was rarely helpful) #1222
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1246 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-30 08:19:14 +00:00
Leon Breedt
8694a79bb2
default to using UTF-8 as response encoding for SOAP if none is
...
supplied, but if an encoding is supplied by caller, use that for the
response instead (NAKAMURA Hiroshi)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-28 17:55:34 +00:00
Leon Breedt
896fea505b
add charset=utf-8 to SOAP response content type, and make base_uri
...
respect relative_url_root for the endpoint of SOAP messages (Shugo
Maeda). if WSDL was retrieved over HTTPS, use HTTPS in the endpoint
URLs as well.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-28 01:19:52 +00:00
Leon Breedt
74c9fd2ba5
add entry for nil casting change
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1243 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 19:43:28 +00:00
David Heinemeier Hansson
61cafca6ea
Disregard expire methods when the controller hasnt been set, which essentially makes it such that the record observer callbacks are ignored when the sweeper shouldnt be active
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 17:40:51 +00:00
David Heinemeier Hansson
f871f33994
Added descriptions for new caching features
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 08:18:42 +00:00
David Heinemeier Hansson
fbd86c2017
Added BenchmarkHelper that can measure the execution time of a block in a template and reports the result to the log
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 08:17:25 +00:00
David Heinemeier Hansson
a2ef9778ce
Added ActionController::Caching::Sweeper as an improved an easier to use sweeper. Added that Fragments#expire_fragment now accepts as a regular expression as the name thereby deprecating expire_matched_fragments. Fixed that fragments shouldn't use the current host and the path as part of the key like pages does
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 08:14:53 +00:00
David Heinemeier Hansson
734c69f241
Added conditions to around_filters just like before_filter and after_filter
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 06:42:12 +00:00
David Heinemeier Hansson
b09fde1924
Fixed acts_as_list where deleting an item that was removed from the list would ruin the positioning of other list items #1197 [Jamis Buck]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-25 16:11:31 +00:00
David Heinemeier Hansson
d8fc381ebc
Added validates_exclusion_of as a negative of validates_inclusion_of
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-24 16:25:57 +00:00
David Heinemeier Hansson
56412f4441
Optimize counting of has_many associations by setting the association to empty if the count is 0
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-23 18:18:18 +00:00
Leon Breedt
3cf461323c
Fix regression where nil values were incorrectly being cast into the
...
default values for their base types.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 19:00:06 +00:00
David Heinemeier Hansson
41bc063e17
Prepared for 0.12.1
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 17:18:36 +00:00
David Heinemeier Hansson
83a531ed5b
Fixed frivilous database queries being triggered with eager loading on empty associations and other things
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 17:05:54 +00:00
David Heinemeier Hansson
3140e37d18
Dont reload on empty associations
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 16:59:30 +00:00
David Heinemeier Hansson
77af61be40
Added xml_http_request/xhr method for simulating XMLHttpRequest in functional tests #1151 [Sam Stephenson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 16:34:44 +00:00
David Heinemeier Hansson
6f34400086
Fixed order of loading in eager associations
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 16:32:57 +00:00
Sam Stephenson
71a616890b
Update to Prototype 1.2.1
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 11:16:50 +00:00