Pratik Naik
a5cdb7a813
Remove stuff that was deprecated in 2-1-stable
2008-10-21 11:34:56 +01:00
David Heinemeier Hansson
6fae0a0ec0
No use case handy for justifying fresh? any more
2008-10-21 10:20:30 +02:00
David Heinemeier Hansson
d85a7aecbb
Merge branch 'master' of git@github.com:rails/rails
2008-10-21 02:55:30 +02:00
David Heinemeier Hansson
448e7e7c04
Let fresh_when actually do the head(:not_modified). Cleaner and we get the filter halting for free then.
2008-10-21 02:54:55 +02:00
Pratik Naik
326036de46
Fix script/generate warning
2008-10-21 01:47:44 +01:00
David Heinemeier Hansson
68d84e2593
Merge branch 'master' of git@github.com:rails/rails
2008-10-21 02:30:57 +02:00
David Heinemeier Hansson
9acb88e666
Added stale?/fresh? and fresh_when methods to provide a layer of abstraction above request.fresh? and friends [DHH]
2008-10-21 02:30:13 +02:00
Matt Jones
326030a1e8
config.gem: Fix typo in unpack, skip dependencies on unloaded gems, and silence spec warnings on refresh. [ #1128 ]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-20 21:45:01 +01:00
Tim Harper
fcb45e5ec3
Ensure ActionView::Helpers::AssetTagHelper::AssetTag::Cache is cleared before loading so changes to asset files are picked up by the broswer [ #1233 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-10-20 13:21:59 -05:00
Geoff Garside
1082cba441
Bump active_support/vendor.rb tzinfo version number [ #1237 state:resolved]
2008-10-20 09:13:45 -05:00
gbuesing
c79f1d281f
TimeWithZone#freeze: preload instance variables so that we can actually freeze
2008-10-19 22:33:26 -05:00
gbuesing
93e1bff82a
Bundle TzInfo version 0.3.11
2008-10-19 22:06:32 -05:00
Pratik Naik
39e1911463
Expose default value of database connection pool in generated database.yml
2008-10-19 19:54:35 +01:00
Michael Koziarski
ba80ff74a9
Sanitize the URLs passed to redirect_to to prevent a potential response splitting attack.
...
CGI.rb and mongrel don't do any sanitization of the contents of HTTP headers, so care needs to be taken.
2008-10-19 15:24:18 +02:00
Daniel Schierbeck
de0ed534f6
Simplified the implementation of the :prefix option.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#984 state:committed]
2008-10-19 13:42:57 +02:00
Daniel Schierbeck
32a58d2afc
Added documentation of the new :prefix option.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-19 13:42:52 +02:00
Daniel Schierbeck
0cb382cb6f
Moved test object instantiation to a setup method.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-19 13:42:52 +02:00
Daniel Schierbeck
ab2b1570fd
Made the :prefix option on Module#delegate accept a custom prefix.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-19 13:42:52 +02:00
Daniel Schierbeck
731c63f8eb
Added :prefix option to Module#delegate.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-19 13:42:52 +02:00
Michael Koziarski
6d1d48de6a
Memoize the require and construction of the StringInquirer
2008-10-19 13:26:36 +02:00
Pratik Naik
550fbccedd
Fix test warnings
2008-10-17 23:57:54 +02:00
Pratik Naik
ffbd7dd8ee
CHANGELOG entry for the previous commit ( 18e7bf2865)
2008-10-17 23:48:41 +02:00
Pratik Naik
18e7bf2865
Fix Brasilia timezone. [ #1180 state:resolved]
2008-10-17 23:43:26 +02:00
Pratik Naik
5384ba3081
Don't create test/performance/test_helper.rb. Just require the needed files from test directly. [ #1135 state:resolved]
2008-10-17 22:58:37 +02:00
Doug Barth
47be090d37
Skip tests that depend on memcached if not running.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-17 18:09:38 +02:00
Doug Barth
4b63c2700f
Bring MemCacheStore and CompressedMemCacheStore inline with expected counter manipulation semantics.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-17 18:09:27 +02:00
Doug Barth
c3d6205a4b
Fix cache counter semantics for MemoryCache, FileStoreCache, and (presumably) the DRbStore.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-17 18:09:26 +02:00
Pratik Naik
95c609357e
Ensure association proxy responds to private class methods defined in associated class. [ #1083 ]
2008-10-16 23:17:49 +02:00
Pratik Naik
9cb5400871
Merge docrails
2008-10-16 22:13:06 +02:00
Ian White
517bc500ed
Allow class methods to be sent (via #send) to association proxy (fix for bug introduced by 691aa20) [ #1083 ]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-16 10:41:48 +02:00
Michael Koziarski
09c1718198
Remove the class_path from the collisions test.
...
The class_path is often taken already in situations like Admin namespaces etc.
2008-10-14 21:59:55 +02:00
Michael Koziarski
3e9fc279e5
Avoid warnings by undefining the old method transliterate.
2008-10-14 21:24:34 +02:00
Michael Koziarski
e0993c6c37
Reverse the order of the iconv arguments to remain compatible with older rubies / iconvs.
...
[#1195 state:resolved]
2008-10-14 21:24:19 +02:00
Joshua Peek
9ab83b1cd1
Don't include the path when checking class collisions [ #545 state:resolved]
2008-10-13 21:43:58 -05:00
gbuesing
c51db4d7ab
Enhance testing for fractional days and weeks. Update changelog.
2008-10-13 20:18:56 -05:00
Tom Lea
a6e5d29e08
Added deprecated warning messages to Float#months and Float#years deprications.
2008-10-13 20:00:10 -05:00
Tom Lea
d599b80009
Deprecated Float#years and Float#months, moved Numeric#years and Numeric#months into Integer.
2008-10-13 20:00:09 -05:00
Tom Lea
27c70ff386
Time#advance recognizes fractional days and weeks [ #970 state:resolved]
2008-10-13 20:00:09 -05:00
David Heinemeier Hansson
1abdc8752d
Added inline builder yield to atom_feed_helper tags where appropriate (Sam Ruby) [ #8994 status:committed]
2008-10-13 19:52:37 +02:00
Pratik Naik
691aa20280
Ensure methods called on association proxies respect access control. [ #1083 state:resolved] [Adam Milligan, Pratik]
2008-10-13 19:02:34 +02:00
Matthew M. Boedicker
42cbd710bb
Add support for xml processing instructions in atom_feed_helper [ #926 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-13 18:46:32 +02:00
Eloy Duran
b47c76b1df
Make sure named routes with parameters can be used in tests before a request has been done. [ #1208 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-13 18:38:48 +02:00
Matt Jones
1b44bbff42
Initialize silence_spec_warnings
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1128 state:resolved]
2008-10-13 17:27:31 +02:00
Matt Jones
9f15870946
Make VendorGemSourceIndex handle broken/missing specs generated by previous versions.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-13 17:27:25 +02:00
Dan Barry
0d4dbb3dfa
test nested hash with float
...
[#652 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-10-12 14:24:05 -07:00
Michael Koziarski
cb45ee344d
Remove the functionality introduce in 28d3390
...
There are several situations it doesn't cater for, and the inconsistency isn't worth blocking 2.2.
2008-10-10 17:04:46 +02:00
Will Bryant
4c05055487
explicitly including child associations that are also included in the parent association definition should not result in double records in the collection/double loads ( #1110 )
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1110 state:committed]
2008-10-10 16:58:39 +02:00
Hongli Lai (Phusion)
28393e6e9c
Add documentation for AbstractAdapter#sanitize_limit, and make its code more readable.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1068 status:committed]
2008-10-09 18:11:10 +02:00
Matt Jones
aa4a7c3530
Fix script/console --sandbox warning. [ #1194 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-09 01:35:21 +01:00
Tarmo Tänav
d69b4b7bea
Made i18n simple backend able to store false values (and not confuse them with nil or lack of value)
...
Implemented support.array.skip_last_comma i18n key for
Array#to_sentence, this also tests the ability to store false.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-09 01:19:02 +01:00