David Heinemeier Hansson
|
57ed93ee66
|
Fixed that Base#find will return an array if given an array -- regardless of the number of elements #270 [Marten]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-15 11:55:43 +00:00 |
|
David Heinemeier Hansson
|
d96e874e0f
|
Insignificante...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-15 11:41:52 +00:00 |
|
David Heinemeier Hansson
|
0bb824b715
|
Changed validate_* to validates_*_of, so validate_acceptance becomes validates_acceptance_of, and added :on as a configuration option instead of using _on_create/update
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-15 01:36:05 +00:00 |
|
David Heinemeier Hansson
|
95314be65b
|
Added tree mixin and unit tests for all the mixins
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-15 00:46:26 +00:00 |
|
David Heinemeier Hansson
|
0a8f382b80
|
Wrapped multi-step operations in transactions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-14 18:17:44 +00:00 |
|
David Heinemeier Hansson
|
bc1aa7d9fd
|
fixtures :models will now also attempt to include the model.rb file
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-14 18:01:28 +00:00 |
|
David Heinemeier Hansson
|
68d1056587
|
Fixed that has_and_belongs_to_many would generate bad sql when naming conventions differed from using vanilla "id" everywhere [RedTerror]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-14 13:55:17 +00:00 |
|
David Heinemeier Hansson
|
605bc77533
|
Added a better exception for when a type column is used in a table without the intention of triggering single-table inheritance. Added that single-table inheritance will only kick in if the inheritance_column (by default "type") is present. Otherwise, inheritance wont have any magic side effects
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-14 12:32:29 +00:00 |
|
David Heinemeier Hansson
|
317f13c2a8
|
Cut dependency on dev-utils by using included breakpoint lib
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-13 23:47:27 +00:00 |
|
David Heinemeier Hansson
|
2c5a2e7f2e
|
Extended no inclusion of messages if theyre nil to base
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@144 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-13 19:25:33 +00:00 |
|
David Heinemeier Hansson
|
9b45e09b2a
|
Fixed bug with reloading associations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-13 19:14:53 +00:00 |
|
David Heinemeier Hansson
|
81e3d06577
|
Moved methods into the main body as only wiring is needed in append_features
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@140 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-13 09:00:44 +00:00 |
|
David Heinemeier Hansson
|
df9276e8b9
|
Fixed that every successive call on the sqlite adapter prepended RAILS_ROOT again and again because RAILS_ROOT itself is the Windows absolute path which begins with the drive letter #294
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-12 22:19:48 +00:00 |
|
David Heinemeier Hansson
|
65a9011ea3
|
Fixed a pattern for module loading
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-12 20:37:43 +00:00 |
|
David Heinemeier Hansson
|
c9cc73d0e9
|
Added the possibility of marking fields as being in error without adding a message (using nil) to it thatll get displayed wth full_messages #208 [mjobin]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@135 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-12 19:46:16 +00:00 |
|
David Heinemeier Hansson
|
5c50df27cf
|
Attempted to capture #286 in a unit test, but couldnt get it to fail
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-12 18:12:57 +00:00 |
|
David Heinemeier Hansson
|
1314f48d68
|
Added methods for resetting the cached information on classes that you want to clear between requests in development mode
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-12 17:49:38 +00:00 |
|
David Heinemeier Hansson
|
1da6abaa3c
|
No longer necessary to guard against reincludes with the new reset of inheritance variables
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-12 16:51:02 +00:00 |
|
David Heinemeier Hansson
|
8e1f1ee442
|
Moved require_association to associations.rb and added methods for resetting the inheritable attributes on subclasses
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-12 16:14:20 +00:00 |
|
David Heinemeier Hansson
|
0c72e6d665
|
Options for the new validation methods are now given as a hash
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-10 16:46:41 +00:00 |
|
David Heinemeier Hansson
|
aaf9a45ca9
|
Added Base.validate_uniqueness thatv alidates whether the value of the specified attributes are unique across the system. Useful for making sure that only one user can be named "davidhh".
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-10 16:02:11 +00:00 |
|
David Heinemeier Hansson
|
0b92b7de2f
|
Added Base.validate_presence as an alternative to implementing validate and doing errors.add_on_empty yourself. Added _on_create and _on_update versions for all the new validations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-10 13:11:13 +00:00 |
|
David Heinemeier Hansson
|
c7589559de
|
Tidied up Fixtures for better readability and some error checking [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 15:52:54 +00:00 |
|
David Heinemeier Hansson
|
8bf9ec6171
|
Fixed TIMESTAMP columns broken due to TIME handling patch
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@99 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 15:49:37 +00:00 |
|
David Heinemeier Hansson
|
5b983f6f6b
|
Fixed Base.errors to be indifferent as to whether strings or symbols are used.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@98 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 15:06:24 +00:00 |
|
David Heinemeier Hansson
|
27ea0b527e
|
Added Base.validate_confirmation that encapsulates the pattern of wanting to validate the acceptance of a terms of service check box (or similar agreement)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@97 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 14:37:37 +00:00 |
|
David Heinemeier Hansson
|
d33f814db5
|
Changed the Proc for a string to avoid repetition problems
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@96 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 14:04:58 +00:00 |
|
David Heinemeier Hansson
|
a65f791fbd
|
Added Base.validate_confirmation that encapsulates the pattern of wanting to validate a password or email address field with a confirmation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@95 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 13:37:11 +00:00 |
|
David Heinemeier Hansson
|
fc817eff44
|
Added validation macros to make the stackable just like the lifecycle callbacks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@94 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 12:50:18 +00:00 |
|
David Heinemeier Hansson
|
cf6282099d
|
A fix that actually works...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@91 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 17:44:31 +00:00 |
|
David Heinemeier Hansson
|
ac4a039a31
|
Callbacks added to the inheritable que should only be called once -- even as the definition is read again
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@90 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 17:39:44 +00:00 |
|
David Heinemeier Hansson
|
04d032ed43
|
scope_condition defaults to 1 on list mixin
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@89 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 17:25:06 +00:00 |
|
David Heinemeier Hansson
|
14b4040a30
|
Added mixins to install.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@88 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 16:23:11 +00:00 |
|
David Heinemeier Hansson
|
3fef016493
|
Cleaned up the class_eval stuff in the new mixins a bit
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@87 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 16:20:51 +00:00 |
|
David Heinemeier Hansson
|
fdd28592f6
|
Forgot to include Mixins::Touch by default
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@86 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 16:14:26 +00:00 |
|
David Heinemeier Hansson
|
7359bccece
|
Added ActiveRecord::Mixins::Touch that will record creation and update times of objects [xal]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@85 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 16:13:04 +00:00 |
|
David Heinemeier Hansson
|
1cf7eb1ca8
|
Added ActiveRecord::Mixins::List that can decorates an existing class with methods like move_higher/lower, move_to_top/bottom
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@84 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 16:02:18 +00:00 |
|
David Heinemeier Hansson
|
55be0a3cb5
|
Renamed from ListMixin and mixins/list_mixin.rb to Mixins::List and mixin/list.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@83 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 15:53:57 +00:00 |
|
David Heinemeier Hansson
|
2d483af0d7
|
Unofficially added ListMixin
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@82 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 15:39:22 +00:00 |
|
David Heinemeier Hansson
|
554597d657
|
Added named bind-style variable interpolation #281 [Michael Koziarski]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@78 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-08 10:38:10 +00:00 |
|
David Heinemeier Hansson
|
a775cb1903
|
Added the option for sanitizing find_by_sql and the offset parts in regular finds [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@75 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-07 21:14:20 +00:00 |
|
David Heinemeier Hansson
|
49403831fc
|
Fixed value quoting in all generated SQL statements, so that integers are not surrounded in quotes and that all sanitation are happening through the database's own quoting routine. This should hopefully make it lots easier for new adapters that doesn't accept '1' for integer columns.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@70 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-07 14:48:53 +00:00 |
|
David Heinemeier Hansson
|
8a40c6b522
|
Fixed has_and_belongs_to_many guessing of foreign key so that keys are generated correctly for models like SomeVerySpecialClient [Florian Weber]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@69 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-07 12:33:42 +00:00 |
|
David Heinemeier Hansson
|
ea759cb761
|
Added counter_sql option for has_many associations [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@68 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-07 12:25:01 +00:00 |
|
David Heinemeier Hansson
|
8e4edec877
|
Fixed that methods wrapped in callbacks still return their original result #260 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@65 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-07 12:10:57 +00:00 |
|
David Heinemeier Hansson
|
b4f4d038b9
|
Fixed the Inflector to handle the movie/movies pair correctly #261 [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@60 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-07 11:15:41 +00:00 |
|
David Heinemeier Hansson
|
d1856a00a3
|
Documentation bugs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@59 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-07 11:12:05 +00:00 |
|
David Heinemeier Hansson
|
3e7d191e64
|
Added bind-style variable interpolation for the condition arrays that uses the adapter's quote method [Michael Koziarski]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@56 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-07 10:37:50 +00:00 |
|
David Heinemeier Hansson
|
5e3eaff5bb
|
Added CSV format for fixtures #272 [what-a-day]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@55 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-07 10:24:13 +00:00 |
|
David Heinemeier Hansson
|
35c89c4176
|
Fixed fixtures using primary key fields called something else than "id" #270 [dave]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@53 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-06 18:56:49 +00:00 |
|