Jeremy Kemper
090bfcec60
Correct documentation for Base.delete_all. References #1568 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 07:41:17 +00:00
Jeremy Kemper
d28e9aef5f
Oracle: test case for column default parsing. References #2788 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 04:51:54 +00:00
Jeremy Kemper
d8f5ccab1c
Update documentation for Migrations. References #2861 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 03:51:39 +00:00
Jeremy Kemper
5cd2f32697
Update documentation for render :file. References #2858 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 00:12:46 +00:00
Jeremy Kemper
da2d4d6d57
Note that the ruby-memcache bindings are required to use the memcache store.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-14 00:08:24 +00:00
Jeremy Kemper
ffc4663218
Update CHANGELOG with more details. References #2842 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 23:39:52 +00:00
Jeremy Kemper
9318131e05
Eliminate Subversion dependencies in scripts/plugin. Correct install options. Introduce --force option to reinstall a plugin. Closes #2842 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 23:35:19 +00:00
Jeremy Kemper
6201679f1a
Reapply [2942] which was elided by [2997]. References #2788 . References #2848 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 22:46:14 +00:00
Jeremy Kemper
44ca6f4b62
Only include builtin filters whose filenames match /^[a-z][a-z_]*_helper.rb$/ to avoid including operating system metadata such as ._foo_helper.rb. References #2855 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 22:21:19 +00:00
David Heinemeier Hansson
b0c23e589f
hidden_field can also be in fields_for
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 12:54:00 +00:00
David Heinemeier Hansson
c6435b77de
Make form_for work with additional options
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3005 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 12:53:03 +00:00
David Heinemeier Hansson
0306127bb5
Show with local vars
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 11:14:12 +00:00
David Heinemeier Hansson
947cec29d5
Added FormHelper#form_for and FormHelper#fields_for that makes it easier to work with forms for single objects also if they don't reside in instance variables [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 11:13:11 +00:00
Jeremy Kemper
4a5b042fc7
r3046@asus: jeremy | 2005-11-13 02:31:21 -0800
...
AbstractAdapter#reconnect_if_inactive! returns boolean success. AbstractAdapter#log alters exception message on reconnect failure rather than raising ConnectionFailed.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 10:32:17 +00:00
Jeremy Kemper
680e4742be
r3042@asus: jeremy | 2005-11-13 01:51:08 -0800
...
MySQL active? and reconnect! References #428 .
r3043@asus: jeremy | 2005-11-13 01:58:28 -0800
SQLite active? and reconnect! References #428 .
r3044@asus: jeremy | 2005-11-13 02:02:27 -0800
Update CHANGELOG with admonishment regarding avoidance of the log method.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3001 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 10:03:03 +00:00
Jeremy Kemper
44b64704dd
r3032@asus: jeremy | 2005-11-12 23:16:52 -0800
...
Ticket 428 - stale connections
r3040@asus: jeremy | 2005-11-13 00:22:29 -0800
When AbstractAdapter#log rescues an exception, attempt to detect and reconnect to an inactive database connection. Connection adapter must respond to the active? and reconnect! instance methods. Initial support for PostgreSQL. References #428 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3000 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 08:23:07 +00:00
Jeremy Kemper
a762939894
PostgreSQL: last_insert_id uses select_value rather than using @connection.exec directly.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 08:09:37 +00:00
Jeremy Kemper
068d9ef0ef
Much faster Oracle column reflection. References #2848 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 07:24:50 +00:00
Jeremy Kemper
077ae340e8
r4331@asus: jeremy | 2005-11-12 17:03:45 -0800
...
PostgreSQL: default_sequence_name falls back to 'id' pk if both the given pk and discovered pk are nil.
r4336@asus: jeremy | 2005-11-12 22:31:39 -0800
PostgreSQL: correct the sequence discovery fallback query. References #2594 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2994 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 06:32:54 +00:00
Jeremy Kemper
d685e2cf18
SQLite: the clone_structure_to_test and purge_test_database Rake tasks should always use the test environment. Reference #2846 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2992 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 02:50:42 +00:00
Jeremy Kemper
91853b8a0d
SQLite: the clone_structure_to_test Rake task should always use the test environment. References #2846 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 01:12:48 +00:00
Jeremy Kemper
54dfb29151
PostgreSQL: min_messages = warning for AR tests.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-12 22:28:38 +00:00
David Heinemeier Hansson
9e0642a4ac
Pulled auto-starting browser: More pain than gain
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2987 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-12 16:26:23 +00:00
Jeremy Kemper
7c8f3edc99
r4325@asus: jeremy | 2005-11-12 03:57:46 -0800
...
PostgreSQL: correctly discover custom primary key sequences. PostgreSQL: smarter sequence name defaults, stricter last_insert_id, warn on pk without sequence. Base.reset_sequence_name analogous to reset_table_name (mostly useful for testing). Base.define_attr_method allows nil values. References #2594 .
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2985 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-12 11:59:54 +00:00
Jamis Buck
7321a41e1b
Make Validations#create! use the current scope
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2984 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-12 05:09:05 +00:00
Jeremy Kemper
047c75fa06
SQLServer: don't report limits for unsupported field types. Closes #2835 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2982 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-11 23:45:02 +00:00
Jeremy Kemper
ae6a513bd1
Include the Enumerable module in ActiveRecord::Errors.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2981 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-11 18:49:01 +00:00
David Heinemeier Hansson
0c048e7c6f
Changelogging
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2979 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-11 10:02:44 +00:00
David Heinemeier Hansson
8e9484d3c1
Make sure that legacy db tasks also reference :database for SQLite ( closes #2830 ) [kazuhiko@fdiary.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2978 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-11 09:50:42 +00:00
Jeremy Kemper
b81c46e6bd
options_for_select allows any objects which respond_to? :first and :last rather than restricting to Array and Range. Closes #2824 . References [2126].
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 22:08:20 +00:00
Nicholas Seckar
41e4173fd6
Fix const_missing handler to ignore the trailing '.rb' on files when comparing paths.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 20:32:13 +00:00
Jeremy Kemper
80b8b76091
Update docs for AR::Base#clone.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 18:53:31 +00:00
Jeremy Kemper
3309268120
Add :group option, correspond to GROUP BY, to the find method and to the has_many association. Closes #2818 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 16:36:01 +00:00
Jeremy Kemper
3488ff6fc6
Pass __FILE__ when evaluating plugins' init.rb. Closes #2817 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 16:25:06 +00:00
Jeremy Kemper
dfda57af85
Better svn status matching for generators. Closes #2814 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 16:14:25 +00:00
Jamis Buck
df5c74cc7c
Make sure the acts_as_list_class is resolved relative to the global namespace
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2971 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 15:59:00 +00:00
Scott Barron
339fff7950
This does not need to be thread local (thanks skaes).
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2970 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 12:59:22 +00:00
David Heinemeier Hansson
7afaa6ed55
Disabled stderr suppressing until activesupport is available also in non-gem mode
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 11:23:20 +00:00
David Heinemeier Hansson
bc223236a6
Don't reload routes until plugins have been loaded so they have a chance to extend the routing capabilities [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 10:45:39 +00:00
Jeremy Kemper
df7a087c76
Don't cast nil or empty strings to a dummy date. Closes #2789 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 06:56:01 +00:00
Jeremy Kemper
c91088cd13
Expand tabs and strip trailing whitespace.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2965 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 06:24:33 +00:00
Jeremy Kemper
b84a7beb98
acts_as_list plays nicely with inheritance by remembering the class which declared it. Closes #2811 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2964 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 06:19:50 +00:00
Jeremy Kemper
adba181060
The auto_link text helper accepts an optional block to format the link text for each url and email address. References #2628 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 06:04:50 +00:00
Nicholas Seckar
c955f378de
Fix sqlite adaptor's detection of missing dbfile or database declaration
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2962 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 00:16:23 +00:00
Nicholas Seckar
73a697c38a
Don't detach or fork for script/server tailing
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 22:57:05 +00:00
David Heinemeier Hansson
c7e5c27b51
Added automatic browser launching on OS X when starting script/server [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2960 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 22:15:01 +00:00
David Heinemeier Hansson
5879a2e919
Changed all script/* to use /usr/bin/env ruby instead of hard-coded Ruby path. public/dispatcher.* still uses the hard-coded path for compatibility with web servers that dont have Ruby in path [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 21:15:41 +00:00
Jeremy Kemper
3661eacfbd
Include all of session creation in stale_session_check
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 20:34:44 +00:00
David Heinemeier Hansson
773b869088
Another word on precedence ( closes #2790 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2956 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 15:35:37 +00:00
David Heinemeier Hansson
5c48a89a7f
Force RAILS_ENV to be "test" when running tests, so that ENV["RAILS_ENV"] = "production" in config/environment.rb doesnt wreck havok [DHH] ( closes #2660 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2955 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 15:11:55 +00:00