Nicholas Seckar
f2c920ec24
Fix line number detection and escape RAILS_ROOT in backtrace Regexp
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-27 21:58:39 +00:00
David Heinemeier Hansson
706a8a8f96
rake should run functional tests even if the unit tests have failures [Jim Weirich]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-27 18:44:28 +00:00
Nicholas Seckar
727162e7fd
When loading classes using const_missing, raise a NameError if and only if the file we tried to load was not present.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-27 17:40:48 +00:00
Nicholas Seckar
a7aa26906c
Recognize ./#{RAILS_ROOT} as RAILS_ROOT in error traces
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-27 17:09:00 +00:00
Nicholas Seckar
e0332f59e4
Back off cleanpath to be symlink friendly. Closes #2533
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-27 17:00:25 +00:00
Nicholas Seckar
435f0c254e
Add name to changelogs
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-27 16:57:25 +00:00
Marcel Molina
0ba5bd583b
Update documentation for observers to reflect new configuration system.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-27 16:06:04 +00:00
David Heinemeier Hansson
beff664f2a
Refactor DB exceptions and deal more with DB2 ( closes #2624 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-27 08:18:41 +00:00
Sam Stephenson
f15819e8f0
Bump to Prototype 1.4.0_rc2
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2755 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 22:07:27 +00:00
Nicholas Seckar
d6461bf9f5
Remove fingerprinting from AR session store; fix bug in store. Closes #2612
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 20:15:43 +00:00
David Heinemeier Hansson
9b2ea172d7
Add exception to example ( closes #2315 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2752 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:29:11 +00:00
David Heinemeier Hansson
17816a11ee
Proper CSS color definition ( closes #2334 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2751 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:26:51 +00:00
David Heinemeier Hansson
4e9bc0f02d
Added TextHelper#strip_tags for removing HTML tags from a string (using HTMLTokenizer) ( closes #2229 ) [marcin@junkheap.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:26:04 +00:00
David Heinemeier Hansson
82f1e19e4c
Fixed docs ( closes #2468 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:20:46 +00:00
David Heinemeier Hansson
0b92d38c00
Added :offset and :limit to the kinds of options that Base.constrain can use ( closes #2466 ) [duane.johnson@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:20:02 +00:00
David Heinemeier Hansson
07c494ae24
Added a reader for flash.now, so it's possible to do stuff like flash.now[:alert] ||= 'New if not set' ( closes #2422 ) [Caio Chassot]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:14:10 +00:00
David Heinemeier Hansson
0d52abfd0e
Added petabytes and exebytes to numeric extensions ( closes #2397 ) [timct@mac.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:10:03 +00:00
David Heinemeier Hansson
fabf34848e
Added Time#end_of_month to accompany Time#beginning_of_month ( closes #2514 ) [Jens-Christian Fischer]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:07:22 +00:00
David Heinemeier Hansson
a8eea0b04b
Fix docs ( closes #2491 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:05:48 +00:00
David Heinemeier Hansson
475bd74168
Fix docs ( closes #2598 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2743 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:04:20 +00:00
David Heinemeier Hansson
95e8740fde
Allow Mailers to have custom initialize methods that set default instance variables for all mail actions ( closes #2563 ) [mrj@bigpond.net.au]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2742 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:02:58 +00:00
David Heinemeier Hansson
dd257a3ccb
Fixed handling of nil number columns on Oracle and cleaned up tests for Oracle in general #2555 [schoenm@earthlink.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 12:57:11 +00:00
David Heinemeier Hansson
50f7c9a98b
Load rake task files in alphabetical order so you can build dependencies and count on them ( closes #2554 ) [Blair Zajac]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 12:50:29 +00:00
David Heinemeier Hansson
85a7892644
Added quoted_true and quoted_false methods to db2_adapter and cleaned up tests for DB2 ( closes #2493 ) [maik schmidt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 12:47:23 +00:00
Florian Weber
88bc13a01d
Removed the dead test settings
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 10:29:59 +00:00
David Heinemeier Hansson
c7a6b9862d
Prepared for release of 0.14.2 (RC3)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2737 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-25 22:11:48 +00:00
Jamis Buck
06303ed34e
Allow symbols to rename columns when using SQLite adapter. #2531 [kevin.clark@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-25 19:28:53 +00:00
Jeremy Kemper
17d3fd3165
r2736@asus: jeremy | 2005-10-24 17:08:12 -0700
...
Test for eager associations with limits should not assume that records are ordered by id.
r2737@asus: jeremy | 2005-10-24 19:06:09 -0700
Fail fast if invalid primary key column.
r2746@asus: jeremy | 2005-10-25 15:37:28 -0700
Begin rollback of fixture delete order. Its solves a problem for 1% of users who already have a workaround while severely slowing down the other 99%.
r2747@asus: jeremy | 2005-10-25 16:03:01 -0700
Rollback the rest.
r2748@asus: jeremy | 2005-10-25 16:06:26 -0700
Re-add fixtures declaration to conditions scoping test
r2749@asus: jeremy | 2005-10-25 16:09:03 -0700
Re-add fixtures declaration to finder test
r2750@asus: jeremy | 2005-10-25 16:13:50 -0700
Don't assume keyboards table is empty
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-25 18:14:09 +00:00
Florian Weber
49bee8826a
Minor documentation fix
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-25 10:44:07 +00:00
Nicholas Seckar
86a571090c
Reset template variables after using render_to_string. Closes #2559
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-25 02:15:08 +00:00
Scott Barron
3a2943c54d
Take a different approach to keeping flash around when using components.
...
One that, you know, doesn't involve consuming every byte of free memory
on the system.
Closes #2589 .
References #2291 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-25 00:38:51 +00:00
Jeremy Kemper
f57ba4cc52
r2727@asus: jeremy | 2005-10-24 14:14:36 -0700
...
Fallback to @loaded_fixtures = {}. Use Logger#silence. Test fixture isolation with use_instantiated_fixtures and with no fixtures declaration.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-24 16:45:33 +00:00
Jeremy Kemper
0e4c5b0288
r2726@asus: jeremy | 2005-10-24 14:11:59 -0700
...
correct primary key semantics: foo.id and foo.real_pk_column should both exist and return nil if foo.new_record?
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-24 16:45:22 +00:00
David Heinemeier Hansson
8ac9638646
A little spacing goes a long way
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-24 13:33:58 +00:00
Jeremy Kemper
b57c86ae74
r3689@sedna: jeremy | 2005-10-16 10:24:36 -0700
...
Ticket 2404 - delete fixtures after using them
r3744@sedna: jeremy | 2005-10-23 12:28:28 -0700
track dirty and loaded fixtures more carefully
r3745@sedna: jeremy | 2005-10-23 12:29:39 -0700
fix broken tests
r3756@sedna: jeremy | 2005-10-23 15:51:00 -0700
Global Logger.silencer switch for Logger#silence.
r3757@sedna: jeremy | 2005-10-23 15:51:35 -0700
Correct changelogs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-23 20:00:05 +00:00
Jeremy Kemper
a2f0ae76d1
r2718@asus: jeremy | 2005-10-23 14:45:30 -0700
...
Ticket 2404 - fixture delete order
r2719@asus: jeremy | 2005-10-23 15:01:13 -0700
Keep closer tabs on dirty, loaded, and declared fixtures. Closes #2404 .
r2720@asus: jeremy | 2005-10-23 16:09:19 -0700
ensure table names are strings. set dirty = dirty union loaded rather than dirty = loaded.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2714 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-23 19:02:38 +00:00
Jeremy Kemper
76879f2541
Map Active Record time to SQL TIME. Closes #2576 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2713 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-23 17:22:03 +00:00
Jeremy Kemper
76487f25e7
Map AR time to PostgreSQL TIME. Closes #2575 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2712 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-23 16:54:38 +00:00
Jamis Buck
cdd49c5360
Constants set in the development/test/production environment file are set in Object
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-23 13:39:24 +00:00
Jeremy Kemper
3ab3a70b7c
Clarify semantics of ActiveRecord::Base#respond_to? Closes #2560 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-22 16:43:39 +00:00
Jeremy Kemper
d0a3185062
Scaffold generator pays attention to the controller name. Closes #2562 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-22 16:02:53 +00:00
David Heinemeier Hansson
3b33a6f336
Include tasks from vendor/plugins/*/tasks in the Rakefile #2545 [Rick Olson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-21 07:33:31 +00:00
Jeremy Kemper
22d9bad8a0
Expose the session model backing CGI::Session
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-20 21:59:48 +00:00
Tobias Lütke
5f0b9369cc
Fix Associations#clear for not-yet-loaded associations (Patrick Lenz)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2695 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-20 15:05:48 +00:00
Jeremy Kemper
7219e82fe6
HABTM finder sets :readonly => false. Closes #2525 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-20 14:53:04 +00:00
Florian Weber
07bff0b535
Fixed misspell of "initialize_framework_settings"
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-20 09:24:18 +00:00
Marcel Molina
e440098aba
Update CHANGELOG.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2692 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-19 22:56:27 +00:00
Marcel Molina
90e8707a36
Make all of tests runnable on their own.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-19 22:53:55 +00:00
Marcel Molina
b23c72fd42
Add title case method to String to do, e.g., 'action_web_service'.titlecase # => 'Action Web Service'.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-19 20:20:11 +00:00
Jamis Buck
4da2d6c1ed
Abbreviate RAILS_ROOT in traces
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-19 15:56:21 +00:00