Amos King
381210daa0
camelize(:lower) should always downcase first character. [ #696 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-22 13:31:13 +01:00
Tom Ward
89d1c77dd0
Initializer to sort files before eager loading. [ #859 state:resolved]
...
Changed Rails::Initializer to sort files before eager loading them. This ensures that
any files in a parent directory will be loaded before files in a subdirectory of the
'same' name. i.e. zoo.rb will be loaded before zoo/reptile_house.rb
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-22 13:06:34 +01:00
Patrick Reagan
683ff235e6
Ensure t.timestamps respects options. [ #828 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-22 12:48:00 +01:00
Tarmo Tänav
52ac9d0444
Fixed ordering in test_find_in_association_with_custom_finder_sql_and_multiple_interpolations
2008-08-22 10:39:45 +03:00
Tarmo Tänav
d3b894563a
Properly quote CREATE DATABASE parameters in postgresql [ #771 state:resolved]
2008-08-22 10:37:09 +03:00
Jeremy Kemper
ab33b27947
Merge branch 'master' of git@github.com:rails/rails
2008-08-21 22:13:45 -07:00
Jeremy Kemper
6e3d2a7996
Revert "Performance: freeze cached rows instead of duping"
...
This reverts commit cd8e653d5b .
2008-08-21 21:40:49 -07:00
Jeremy Kemper
a5eb297424
Revert "coerce blank strings to nil values for boolean and integer fields"
...
This reverts commit aee14630d4 .
[#860 state:incomplete]
2008-08-21 21:34:37 -07:00
Joshua Peek
0096f55869
Removed template_public? because it will always be true since the default template is never a partial
2008-08-21 21:34:03 -05:00
Joshua Peek
ba516b40f5
Tidy up pick partial template logic
2008-08-21 21:25:33 -05:00
Adrian Mugnolo
893fb5bb63
Add ActiveResource::Base.find(:last). [ #754 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-22 03:06:57 +01:00
Ryan Bates
1129a24caf
Cleanup around partial rendering
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-21 21:03:33 -05:00
Jeremy Kemper
e6a66cbd05
update rack tests for default response content_type and charset
2008-08-21 18:16:16 -07:00
Jeremy Kemper
b99442933d
deprecate Base#assign_default_content_type_and_charset
2008-08-21 18:14:32 -07:00
Jeremy Kemper
f8f077945f
Move default content type and charset from Base to Response. Handle charset = nil.
2008-08-21 18:11:09 -07:00
Jeremy Kemper
aab2f0b353
Merge branch 'master' of git@github.com:rails/rails
2008-08-21 17:50:06 -07:00
Tarmo Tänav
98fb161dbb
Allow polymorphic_url helper to take url options. [ #880 state:resolved]
...
All *_polymorphic_url, *_polymorphic_path helpers can now accept
an options hash which will be passed on to the named route
making it possible to generate polymorphic routes with additional
url parameters.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 20:26:00 +01:00
Frederick Cheung
654c41255d
Mark Class as not being duplicable. [ #829 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 18:40:20 +01:00
S. Brent Faulkner
bbedb6a624
remember created records and select a random one instead of relying on sequential id values starting at 1
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-08-21 19:33:26 +02:00
Josh Susser
aee14630d4
coerce blank strings to nil values for boolean and integer fields
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-08-21 19:33:25 +02:00
Peter Wagenet
8622787f87
Don't interpret decimals as table names in ActiveRecord::Associations::ClassMethods#references_eager_loaded_tables? [ #532 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 17:21:17 +01:00
Tom Lea
3724dafe71
Fix incorrect signature for NamedScope#respond_to? [ #852 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 16:39:27 +01:00
Miles Georgi
0d74e72e6d
Fix postgres bug when change_column is called with invalid parameters. [ #861 state:resolved]
...
Signed-off-by: Tarmo Tänav <tarmo@itech.ee >
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 16:22:14 +01:00
Philip Hallstrom
49c0e1e594
Fix generated WHERE IN query for named scopes. [ #583 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 16:11:28 +01:00
Xavier Noria
a970f916fb
Fix has_many#count_records. [ #865 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 15:48:04 +01:00
Jakub Kuźma
ea40f71431
Fix that has_one natural assignment to already associated record. [ #854 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 15:21:21 +01:00
Darragh Curran
7e4ea5f4a2
Allow overriding id for feed and entry with atom_feed_builder. [ #485 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 13:37:26 +01:00
Ryan Bates
2415652660
Support find_all on named scopes. [ #730 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 12:37:19 +01:00
Joshua Peek
6be8251ec8
Simplified and renamed CallbackChain union method to replace_or_append!
2008-08-21 00:51:06 -05:00
Joshua Peek
f388725bd6
Partial revert of 2681685 premature TypeArray abstraction
2008-08-21 00:28:25 -05:00
Miles Georgi
09343166ac
PostgreSQL: fix transaction bug that can occur if you call change_column with invalid parameters
...
[#861 state:resolved]
2008-08-20 13:25:49 -07:00
Joshua Peek
47cd8b81cc
Switched integration test runner to use Rack processor instead of CGI
2008-08-20 13:37:18 -05:00
Joshua Peek
a74dbe6c52
Improve test coverage for integration tests cookie header
2008-08-20 13:22:36 -05:00
Joshua Peek
3a2ff17af6
Don't shadow query string method
2008-08-19 20:24:34 -05:00
Joshua Peek
6f530de944
Test coverage for integration testing with parameters
2008-08-19 20:15:51 -05:00
Joshua Peek
5de340e79f
Ensure objects cached with MemoryStore are immutable
2008-08-19 19:20:10 -05:00
Ryan Bates
a8ece12fe2
Return nil instead of a space when passing an empty collection or nil to 'render :partial' [ #791 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-19 19:09:04 -05:00
Joshua Peek
71c4ff07ab
Delegate xhr helper method to integration session
2008-08-19 18:53:46 -05:00
Joshua Peek
5df8ff1d6b
Touch file with git revision when freezing edge
2008-08-19 17:16:35 -05:00
Jamis Buck
6e4ea66dc0
Make AbstractRequest.if_modified_sense return nil if the header could not be parsed
2008-08-19 16:07:17 -06:00
Joshua Peek
bd7edcf286
Removed config.ru template from app generator
2008-08-19 16:46:15 -05:00
Joshua Peek
977317da55
hack around CGI session close
2008-08-19 16:29:02 -05:00
Joshua Peek
e9ae2b2f4c
Added rack logger middleware that tails the environment log
2008-08-19 00:18:26 -05:00
Joshua Peek
96ab01e8f2
Maintain a seperate buffer for each thread
2008-08-18 23:36:13 -05:00
Joshua Peek
c1a8690d58
Consistently use the framework's configured logger and avoid reverting to RAILS_DEFAULT_LOGGER unless necessary.
2008-08-18 23:36:13 -05:00
Joshua Peek
a4da8175a2
Replace MemoryStore mutex with a monitor to avoid issues with nested calls
2008-08-18 20:17:08 -05:00
Jeremy Kemper
cd8e653d5b
Performance: freeze cached rows instead of duping
2008-08-18 17:34:38 -07:00
Jeremy Kemper
7fbe226de5
Ruby 1.9 and GC::Profiler updates
2008-08-18 16:41:08 -07:00
Ryan Bates
38c7d73e73
pass yielded arguments to block for ActionView::Base#render with :layout [ #847 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-17 19:29:24 -05:00
Joshua Peek
dbb0abfb7e
More integration test coverage
2008-08-17 19:18:18 -05:00