David Heinemeier Hansson
e536d4d888
Changed all generated tests to use the test/do declaration style [DHH]
2008-06-12 20:10:50 -05:00
David Heinemeier Hansson
f74ba37f4e
Added test/do declaration style testing to ActiveSupport::TestCase [DHH via Jay Fields]
2008-06-12 20:10:38 -05:00
David Heinemeier Hansson
048ac3604c
Revert "Ensure MemCacheStore is required when using CompressedMemCacheStore since they are lazy load now."
...
This reverts commit dd4181f47d .
2008-06-12 19:52:44 -05:00
David Heinemeier Hansson
6573f6a4bc
Revert "Lazy load cache and session stores"
...
This reverts commit 19895f087c .
2008-06-12 19:52:33 -05:00
David Heinemeier Hansson
a3caf28da3
Added Object#present? which is equivalent to !Object#blank? [DHH]
2008-06-12 18:30:56 -05:00
David Heinemeier Hansson
ea3a7e1bb1
Merge branch 'master' of git@github.com:rails/rails
2008-06-12 17:48:30 -05:00
David Heinemeier Hansson
556204abaf
Added Enumberable#several? to encapsulate collection.size > 1 [DHH]
2008-06-12 17:46:15 -05:00
Joshua Peek
dd4181f47d
Ensure MemCacheStore is required when using CompressedMemCacheStore since they are lazy load now.
2008-06-12 14:20:30 -05:00
Joshua Peek
d4c58c7928
Opps, I forgot to add template_handlers.rb to my index.
2008-06-11 22:22:05 -05:00
Joshua Peek
5ed162d7c1
Moved template handler registration into a mix-in module.
2008-06-11 22:05:36 -05:00
Jeremy Kemper
2275b8daab
Fix quoting in test_counting_with_single_conditions
2008-06-11 19:21:47 -07:00
Ben Munat
ddab9d7fdf
Add :from option to calculations. [ #397 state:resolved]
2008-06-11 18:07:57 -07:00
Antonio Cangiano
e170d34a63
Fixed non-standard SQL generated by preloading has_and_belongs_to_many association
2008-06-11 17:25:39 -07:00
Jeremy Kemper
e6c1f46eb0
Silence scope resolution warnings
2008-06-11 13:17:23 -07:00
Pratik Naik
65bc8f33de
Silence TimeZone warning
2008-06-11 17:11:34 +01:00
Jeremy Kemper
23df8befcd
supports_insert_with_returning? caches false result also
2008-06-11 09:06:36 -07:00
Jan De Poorter
d0b3685a0e
Added some has_many tests
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-11 13:18:54 +01:00
Jan De Poorter
ca9641f8a7
Fix FormOptionsHelper tests.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-11 13:17:40 +01:00
Jonathan del Strother
3e07f320c1
Improve ActionCaching's format-handling
...
Make ActionCaching more aware of different mimetype formats.
It will now use request.format to look up the cache type, in addition to the path extension.
When expiring caches, the request format no longer affects which cache is expired.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-11 13:15:01 +01:00
Pratik Naik
6fd73442d8
Update docs to reflect 71bf75
2008-06-11 12:57:19 +01:00
Pratik Naik
71bf756ea2
Disable validations for associated belongs_to record by default
2008-06-11 12:39:56 +01:00
Jan De Poorter
7f140bbdda
Add :validate option to associations. [ #301 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-11 12:21:57 +01:00
Pratik Naik
f728e57d22
Make sure cache_template_loading works and don't use to_prepare callback
2008-06-11 09:36:41 +01:00
Ruy Asan
3f594299c8
TimeZone -> ActiveSupport::TimeZone. [ #387 state:resolved]
2008-06-11 00:49:13 -07:00
Grant Hollingworth
634e462a0b
Performance: speed up Hash#except. [ #382 state:resolved]
2008-06-11 00:47:02 -07:00
Joshua Peek
e8a0ba4c93
Ensure view path cache is rebuilt in production mode which was broke by df44df9.
2008-06-10 20:39:02 -05:00
Jeremy Kemper
6b280e5b54
Merge branch 'pg'
2008-06-10 18:33:15 -07:00
Jeremy Kemper
03bf727219
PostgreSQL: use 'INSERT ... RETURNING id' for 8.2 and later.
2008-06-10 18:31:37 -07:00
Pratik Naik
0ad0bdc01c
Delegate ActionView::Base#controller_name to controller
2008-06-10 23:55:04 +01:00
Jeremy Kemper
b440aeb54a
PostgreSQL: insert looks up pk and sequence name if not given. [ #384 state:resolved]
2008-06-10 15:50:01 -07:00
Jeremy Kemper
fb14c88e39
Inflector -> ActiveSupport::Inflector
2008-06-10 14:02:38 -07:00
Jeremy Kemper
34c51c9e8f
Rubinious: setup/teardown override for miniunit
2008-06-10 14:01:16 -07:00
Jeremy Kemper
f5cbad21ac
Rubinious: work around h[k] ||= v returning []= result instead of v
2008-06-10 14:01:16 -07:00
Pratik Naik
19895f087c
Lazy load cache and session stores
2008-06-10 10:29:25 +01:00
Luis Hurtado
225065709c
Fixes parsing deep nested resources from XML. [ #380 state:resolved]
2008-06-09 23:06:07 -07:00
Jeremy Kemper
16a9787bf0
Add empty setup and teardown methods to rule out default setup behavior in base class
2008-06-09 23:04:51 -07:00
rick
f545e19692
add deprecation for the #concat helper's 2nd argument, which is no longer needed
2008-06-09 14:18:21 -07:00
rick
64637da284
add deprecation for the #concat helper's 2nd argument, which is no longer needed
2008-06-09 12:06:23 -04:00
Brandon Keepers
e94e53f9cd
fix eager loading with dynamic finders
2008-06-09 12:05:20 -04:00
Joshua Peek
2336430471
Removed TemplateFinder.update_extension_cache_for since view path cache will be updated on boot.
2008-06-09 10:21:30 -05:00
Joshua Peek
55791c6c00
Removed used check_view_paths after 057768c
2008-06-09 10:05:02 -05:00
Jeremy Kemper
9051da90e4
Enable autoreconnect if available. Freeze constants.
2008-06-08 22:38:30 -07:00
Jeremy Kemper
d20035910c
Give a more informative error message instead of just raising a load error when mysql gem isn't installed
2008-06-08 22:34:09 -07:00
Jeremy Kemper
def594b92d
Don't append limit to primary key column definition. Freeze some constants.
2008-06-08 22:08:59 -07:00
Jeremy Kemper
057768cd2c
Process view paths passed to AV::Base#initialize instead of raising.
2008-06-08 21:21:54 -07:00
Jeremy Kemper
c88f2b5e23
with_output_buffer returns the temporary buffer instead of the result of the block
2008-06-08 20:35:30 -07:00
Joshua Peek
df44df945d
Ensure ActionView::TemplateFinder view cache is rebuilt on initialize.
2008-06-08 22:31:54 -05:00
Joshua Peek
0c9281e821
Drop ActionController::Base.allow_concurrency flag
2008-06-08 22:11:50 -05:00
Jeremy Kemper
ff5f155f8d
Use output_buffer reader and writer methods exclusively instead of hitting the instance variable so others can override the methods.
2008-06-08 20:05:39 -07:00
rick
8bf74c30fe
change some more TimeZone references to ActiveSupport::TimeZone
2008-06-08 22:26:30 -04:00