David Heinemeier Hansson
|
d678997688
|
Base#update_attribute isnt subject to validation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@210 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-18 11:17:22 +00:00 |
|
David Heinemeier Hansson
|
3bef4c246a
|
Made Base#update_attributes actually work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-18 01:27:57 +00:00 |
|
David Heinemeier Hansson
|
604a09462e
|
Added Base#update_attributes that'll accept a hash of attributes and save the record (returning true if it passed validation, false otherwise). Added a return value for Base#update_attribute, so that you get to know whether the save was successful or if it failed validation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@207 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-17 21:51:14 +00:00 |
|
David Heinemeier Hansson
|
648b8fda54
|
Added Base.destroy and Base.delete to remove records without holding a reference to them first.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-17 21:36:13 +00:00 |
|
David Heinemeier Hansson
|
f033833fb9
|
Improving documentation...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-16 16:56:30 +00:00 |
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
2575b3b065
|
Added extra words of caution for guarding against SQL-injection attacks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@46 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-06 18:08:35 +00:00 |
|
David Heinemeier Hansson
|
9a248a83b5
|
Dont include the primary key in updates -- its unneeded and SQL Server chokes on it
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@42 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-01 15:20:53 +00:00 |
|
David Heinemeier Hansson
|
d6d875bfb4
|
Moved the global require_* out of the classes so they actually work without stack overflows
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@33 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-11-30 19:13:34 +00:00 |
|
David Heinemeier Hansson
|
d82f73ecab
|
Abolished ActionController::Base.require_or_load in favor of require_dependency and ActiveRecord::Base.require_or_load in favor of require_association. Both methods are now also available in the global namespace when you need to require dependencies or associations outside of whats done automatically.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@32 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-11-30 18:52:20 +00:00 |
|
David Heinemeier Hansson
|
ac3c8a54f8
|
Silence errors occurring when reloading classes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@27 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-11-30 16:25:08 +00:00 |
|
David Heinemeier Hansson
|
db045dbbf6
|
Initial
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-11-24 01:04:44 +00:00 |
|