Joshua Peek
|
4e50a35fa2
|
Break up DependencyModule's dual function of providing a "depend_on" DSL and "included" block DSL into separate modules. But, unify both approaches under AS::Concern.
|
2009-05-28 11:35:36 -05:00 |
|
Bryan Helmkamp
|
a2875bec9a
|
Use DependencyModule for included hooks in ActiveRecord
|
2009-05-11 22:23:47 -04:00 |
|
Pratik Naik
|
a2932784bb
|
Merge docrails
|
2008-10-05 22:16:26 +01:00 |
|
Rob Anderton
|
b518b6c0d3
|
Expanded documentation for new composed_of options
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#892 state:committed]
|
2008-09-10 18:28:57 +02:00 |
|
Rob Anderton
|
2cee51d5c1
|
Added :constructor and :converter options to composed_of and deprecated the conversion block
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-09-10 18:28:47 +02:00 |
|
Pratik Naik
|
98dc582742
|
Merge docrails.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-05-25 12:29:00 +01:00 |
|
Jeremy Kemper
|
6b9448cdd2
|
Partial updates include only unsaved attributes. Off by default; set YourClass.partial_updates = true to enable.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 01:10:04 +00:00 |
|
Jeremy Kemper
|
abdf546ad6
|
Support aggregations in finder conditions. Closes #10572.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8671 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-19 03:45:24 +00:00 |
|
Jeremy Kemper
|
20d29b3797
|
Ruby 1.9 compat: introduce ActiveSupport::FrozenObjectError normalize TypeError vs RuntimeError handling. Closes #10645 [Frederick Cheung]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-29 19:43:07 +00:00 |
|
Jeremy Kemper
|
07392bfe87
|
Ruby 1.9 compat: workaround module_eval bug. Closes #10641 [Frederick Cheung]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-29 05:06:06 +00:00 |
|
David Heinemeier Hansson
|
2af36bbbd4
|
Fix typos (closes #10378)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-05 18:54:41 +00:00 |
|
Jeremy Kemper
|
7b42a1d0ac
|
Assigning an instance of a foreign class to a composed_of aggregate calls an optional conversion block. Refactor and simplify composed_of implementation. Closes #6322.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-23 17:39:35 +00:00 |
|
Jeremy Kemper
|
c220e558be
|
Assigning nil to a composed_of aggregate also sets its immediate value to nil. Closes #9843.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-23 17:29:42 +00:00 |
|
Jeremy Kemper
|
cff25aae90
|
eval with __FILE__ and __LINE__
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-10 23:01:18 +00:00 |
|
Michael Koziarski
|
18a3333a30
|
Formatting, grammar and spelling fixes for the associations documentation. [seanhussey] Closes #8899
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-08-28 23:18:57 +00:00 |
|
David Heinemeier Hansson
|
85fbb22f07
|
Backed out of new_record? to new? transformation as it would screw up existing models that did boolean calls on "new" attributes [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-05 18:54:24 +00:00 |
|
David Heinemeier Hansson
|
9d7e6432b2
|
Deprecated ActiveRecord::Base.new_record? in favor of ActiveRecord::Base.new? (old version still works until Rails 2.0) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-05 18:48:10 +00:00 |
|
Jeremy Kemper
|
63375b9ef2
|
Grammar fix in aggregations rdoc. Closes #5613.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4561 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-07-06 02:05:09 +00:00 |
|
David Heinemeier Hansson
|
59c8c63ecd
|
Added :allow_nil option for aggregations (closes #5091) [ian.w.white@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-05-21 17:32:37 +00:00 |
|
Marcel Molina
|
aa72c465ec
|
Replace superfluous name_to_class_name variant with camelize. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4313 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-29 20:34:31 +00:00 |
|
Jeremy Kemper
|
d496db1388
|
Reloading an instance refreshes its aggregations as well as its associations. References #3024.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-08 04:46:57 +00:00 |
|
David Heinemeier Hansson
|
6abda696b5
|
Added preliminary support for join models [DHH] Added preliminary support for polymorphic associations [DHH] Refactored associations to use reflections to get DRYer, beware, major refactoring -- double check before deploying anything with this (all tests pass, but..)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-03 04:29:55 +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
|
0439769324
|
Refactored away all the legacy validate_options calls and replaced them with Hash#assert_valid_keys
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-09 08:32:47 +00:00 |
|
David Heinemeier Hansson
|
7c8d2f28e1
|
Removed broken attempt to DRY module ClassMethod #970
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-02 09:29:43 +00:00 |
|
David Heinemeier Hansson
|
c788bcb416
|
Automatically extend the class which gets a module included with the ClassMethods module if it exists #970 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1068 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-02 09:14:19 +00:00 |
|
David Heinemeier Hansson
|
02ba03509c
|
Added better defaults for composed_of, so statements like composed_of :time_zone, :mapping => %w( time_zone time_zone ) can be written without the mapping part (it's now assumed)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@821 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-01 23:52:36 +00:00 |
|
David Heinemeier Hansson
|
098fa94356
|
Fixed documentation snafus #575, #576, #577, #585
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-07 14:15:53 +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 |
|