Jeremy Kemper
|
84a14f2620
|
Raise ProtectedAttributeAssignmentError in development and test environments when mass-assigning to an attr_protected attribute. Closes #9699.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 19:43:19 +00:00 |
|
Jeremy Kemper
|
c7c3f73fd9
|
Reinstate failsafe date/time parsing rescues. Head off some obvious failures like year == 0 or nil.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 06:27:39 +00:00 |
|
Jeremy Kemper
|
8d7eb30898
|
MySQL: speedup date/time parsing.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 05:29:37 +00:00 |
|
Jeremy Kemper
|
a76fa613d3
|
Check for the dir instead of relying on an exception.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 05:25:36 +00:00 |
|
Michael Koziarski
|
cd64471bdb
|
Fix calling .clear on a has_many :dependent=>:delete_all association. [tarmo] Closes #6904
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 05:05:12 +00:00 |
|
Michael Koziarski
|
5a276643d1
|
Allow change_column to set NOT NULL in the PostgreSQL adaptor. Closes #3904 [tarmo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 04:52:09 +00:00 |
|
Michael Koziarski
|
638505b90f
|
Send the correct INSERT statement when dealing with objects with only primary keys. Closes #9523 [tarmo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7753 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-06 00:49:58 +00:00 |
|
Michael Koziarski
|
4db718e2bb
|
Only cache attributes which need it for performance reasons. Closes #9767 [skaes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7752 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-06 00:48:43 +00:00 |
|
Rick Olson
|
5b2e8b1eb1
|
Fix that ActiveRecord would create attribute methods and override custom attribute getters if the method is also defined in Kernel.methods. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-06 00:25:07 +00:00 |
|
Rick Olson
|
24c2457a26
|
Don't call attr_readonly on polymorphic belongs_to associations, in case it matches the name of some other non-ActiveRecord class/module. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-05 19:27:33 +00:00 |
|
Jeremy Kemper
|
335c15005d
|
Bump versions for 1.2.4 release.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-05 05:20:37 +00:00 |
|
Jeremy Kemper
|
b1968708e1
|
Hash#to_json takes :only or :except options to specific or omit certain hash keys. Enumerable#to_json passes through its options to each element. Closes #9751.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-04 03:28:42 +00:00 |
|
Jeremy Kemper
|
a30a1a9d5f
|
Try loading activerecord-<adaptername>-adapter gem before trying a plain require so you can use custom gems for the bundled adapters. Also stops gems from requiring an adapter from an old Active Record gem.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-04 01:08:10 +00:00 |
|
Tobias Lütke
|
406ea8f31d
|
only create custom accessors for Kernel:: methods
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-03 21:48:49 +00:00 |
|
Tobias Lütke
|
b31aa639e7
|
Allow column accessors to be created even if Kernel. or Object# methods of the same name exist.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-03 20:47:33 +00:00 |
|
Michael Koziarski
|
b4ec9904c6
|
Cache the descends_from_activerecord? call to speed up query generation. [skaes] Closes #9765
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-03 05:31:36 +00:00 |
|
Rick Olson
|
66d05f5e2c
|
Add attr_readonly to specify columns that are skipped during a normal ActiveRecord #save operation. Closes #6896 [dcmanges]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-30 07:09:44 +00:00 |
|
Rick Olson
|
30a652ad41
|
Make size for has_many :through use counter cache if it exists. Closes #9734 [xaviershay]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7692 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-30 06:47:20 +00:00 |
|
Jeremy Kemper
|
e5a60fb2bf
|
Don't implicitly assign instance variables by using them as block arguments
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-30 06:22:39 +00:00 |
|
Jeremy Kemper
|
c9bfd7d543
|
Remove DB2 adapter since IBM chooses to maintain their own adapter instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-29 23:20:36 +00:00 |
|
Jeremy Kemper
|
4158e54d75
|
Extract Oracle, SQLServer, and Sybase adapters into gems.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7689 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-29 23:18:38 +00:00 |
|
Jeremy Kemper
|
d41ea51d39
|
Ruby 1.9 compat for instance method check in Mysql adapter.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-29 23:18:24 +00:00 |
|
Jeremy Kemper
|
b095ce63f2
|
Fixtures test fixes and general cleanup. Closes #9682 [norbert]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 14:56:07 +00:00 |
|
David Heinemeier Hansson
|
e3b49c052b
|
Fixed spelling errors (closes #9706) [tarmo/rmm5t]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 14:18:47 +00:00 |
|
Jeremy Kemper
|
7cb1f93bcc
|
MySQL: change_column raises if the table or column doesn't exist.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 14:10:51 +00:00 |
|
David Heinemeier Hansson
|
bbdb4e55f6
|
Added :include option to to_json (closes #9677) [chuyeow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 14:07:23 +00:00 |
|
David Heinemeier Hansson
|
078bd0515e
|
Added fixture caching thatll speed up a normal fixture-powered test suite between 50% and 100% (closes #9682) [frederick.cheung@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 14:05:03 +00:00 |
|
Jeremy Kemper
|
4965b1b961
|
Correctly quote id list for limited eager loading. Closes #7482.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 23:51:03 +00:00 |
|
David Heinemeier Hansson
|
5757fb61d8
|
self.fixture_class_names is defined twice in fixtures.rb (closes #7135) [jarkko]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 23:17:01 +00:00 |
|
David Heinemeier Hansson
|
0b2e059f0a
|
Removed unnecessary or statement (closes #7158) [richcollins]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7583 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 23:15:54 +00:00 |
|
David Heinemeier Hansson
|
766fbce04e
|
Fixed that using version-targetted migrates would fail on loggers other than the default one (closes #7430) [valeksenko]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 22:18:55 +00:00 |
|
David Heinemeier Hansson
|
0442f1ea75
|
Docfix (closes #7593) [tarmo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 18:35:41 +00:00 |
|
David Heinemeier Hansson
|
046a87a855
|
Fixed rename_column for SQLite when using symbols for the column names (closes #8616) [drodriguez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 18:23:30 +00:00 |
|
David Heinemeier Hansson
|
286bd9b9f0
|
Docfix (closes #8767) [kampers]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7561 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 18:17:53 +00:00 |
|
David Heinemeier Hansson
|
18a24274ec
|
Allow frameworks to be required by their gem name (closes #8845) [drnic]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7560 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 18:15:05 +00:00 |
|
David Heinemeier Hansson
|
0f3d8707db
|
Removed unused @join_sql reference (closes #9174) [danger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7554 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 17:53:39 +00:00 |
|
David Heinemeier Hansson
|
0faa4ca04c
|
Doc fix (closes #9323) [Henrik N]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7549 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 17:39:55 +00:00 |
|
David Heinemeier Hansson
|
e38ad5ddcc
|
Added the possibility of using symbols in addition to concrete classes with ActiveRecord::Observer#observe #3998 [robbyrussell/tarmo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 17:05:15 +00:00 |
|
David Heinemeier Hansson
|
0d5a7d1d8c
|
Stress that you should really install the C-based MySQL library when running on the pure Ruby one (closes #9507)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-20 23:40:48 +00:00 |
|
David Heinemeier Hansson
|
e86d1cd621
|
Added ActiveRecord::Base#to_json/from_json (currently does not support :include like to_xml) [DHH]. Added ActiveRecord::Base#from_xml [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-20 23:22:30 +00:00 |
|
Michael Koziarski
|
7010ee361e
|
Stop users from calling .create on a has_many / habtm association when the owner is a new_record?
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-18 10:26:56 +00:00 |
|
Tobias Lütke
|
4a1388adea
|
Define dynamic finders as real methods after first usage. Close #9317
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-18 10:04:11 +00:00 |
|
Jeremy Kemper
|
7495b5ca75
|
Deprecation: remove deprecated threaded_connections methods. Use allow_concurrency instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7509 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-18 06:43:05 +00:00 |
|
Jeremy Kemper
|
81d619ea0d
|
Associations macros accept extension blocks alongside modules. Closes #9346.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-17 21:19:44 +00:00 |
|
Jeremy Kemper
|
6b1901da8f
|
Don't worry about retrieving the last inserted id. [tarmo_t]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-17 20:43:02 +00:00 |
|
Michael Koziarski
|
acbec3e565
|
Ensure that custom mutators aren't redefined by define_attribute_methods. [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-17 09:29:02 +00:00 |
|
Jeremy Kemper
|
bfb906a905
|
Speed up and simplify query caching.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7498 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-17 06:15:58 +00:00 |
|
Jeremy Kemper
|
30fb7b8c8b
|
connection.select_rows 'sql' returns an array (rows) of arrays (field values). Closes #2329.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-16 03:32:47 +00:00 |
|
Jeremy Kemper
|
b8657089f2
|
Eager loading respects explicit :joins. Closes #9496.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7494 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-15 23:50:12 +00:00 |
|
Jeremy Kemper
|
a6083b86d1
|
Extract Firebird, FronBase, and OpenBase adapters into gems. Closes #9508, #9509, #9510.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-15 23:22:58 +00:00 |
|