Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Fix creation of has_many through records with custom primary_key option on ↵ | Szymon Nowak | 2010-12-23 | 1 | -0/+1 | |
| | | | | | | | | belongs_to [#2990 state:resolved] | |||||
| * | Don't allow a has_one association to go :through a collection association ↵ | Jon Leighton | 2010-12-23 | 1 | -1/+3 | |
| | | | | | | | | [#2976 state:resolved] | |||||
| * | Verify that creating a has_many through record where there is a ↵ | Jon Leighton | 2010-12-16 | 1 | -0/+4 | |
| | | | | | | | | default_scope on the join model works correctly (creates the join record with the default scope applied) | |||||
| * | Respect the default_scope on a join model when reading a through association | Jon Leighton | 2010-12-16 | 1 | -0/+4 | |
| | | ||||||
* | | Fix naughty trailing whitespace | Jon Leighton | 2010-10-31 | 1 | -3/+3 | |
| | | ||||||
* | | Add explicit tests for the nested through association changes in reflection.rb | Jon Leighton | 2010-10-19 | 1 | -0/+1 | |
| | | ||||||
* | | Support the :primary_key option on a through reflection in a nested through ↵ | Jon Leighton | 2010-10-19 | 1 | -0/+3 | |
| | | | | | | | | association | |||||
* | | Support for :primary_key option on the source reflection of a through ↵ | Jon Leighton | 2010-10-19 | 1 | -0/+2 | |
| | | | | | | | | association, where the source is a has_one or has_many | |||||
* | | Respect the :primary_key option on the through_reflection of (non-nested) ↵ | Jon Leighton | 2010-10-19 | 1 | -1/+11 | |
| | | | | | | | | through associations | |||||
* | | Properly support conditions on any of the reflections involved in a nested ↵ | Jon Leighton | 2010-10-19 | 1 | -1/+6 | |
| | | | | | | | | through association | |||||
* | | Add test_has_many_through_has_many_through_with_belongs_to_source_reflection ↵ | Jon Leighton | 2010-10-14 | 1 | -0/+1 | |
| | | | | | | | | (which already works) | |||||
* | | Added ↵ | Jon Leighton | 2010-10-14 | 1 | -0/+1 | |
| | | | | | | | | test_has_many_through_has_many_with_has_many_through_habtm_source_reflection and make it pass | |||||
* | | Add a commented, failing test for using a habtm in a has many through ↵ | Jon Leighton | 2010-10-12 | 1 | -3/+5 | |
| | | | | | | | | association. I want to refactor how aliasing works first. | |||||
* | | Add support for table aliasing, with a test that needs aliasing in order to ↵ | Jon Leighton | 2010-10-02 | 1 | -1/+2 | |
| | | | | | | | | work correctly. This test incidentally provides a more complicated test case (4 inner joins, 2 using polymorphism). | |||||
* | | Prevent ↵ | Jon Leighton | 2010-09-30 | 1 | -2/+2 | |
| | | | | | | | | test_has_many_through_a_has_many_through_association_on_through_reflection failing for me due to ordering of the results | |||||
* | | Initial nested_has_many_through support [#1152] | Bodaniel Jeanes | 2010-09-26 | 1 | -4/+10 | |
|/ | ||||||
* | Ensure we can nest include calls [#5285 state:resolved] | Neeraj Singh | 2010-08-12 | 1 | -0/+3 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | update_attributes and update_attributes! are now wrapped in a transaction | Neeraj Singh | 2010-07-13 | 1 | -0/+2 | |
| | | | | | | [#922 state:resovled] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | test cases for record.to_xml [#458 state:resolved] | Neeraj Singh | 2010-04-30 | 1 | -0/+4 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Fix associations to call :destroy or :delete based on the right :dependent ↵ | Carlos Antonio da Silva | 2010-03-09 | 1 | -6/+3 | |
| | | | | | | option Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Refactor new callbacks and AR implementation. | José Valim | 2009-09-08 | 1 | -1/+2 | |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | Enable has_many :through for going through a has_one association on the join ↵ | Gabe da Silveira | 2009-08-10 | 1 | -0/+1 | |
| | | | | | | model [#2719 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Add primary_key option to belongs_to association | Szymon Nowak | 2009-07-15 | 1 | -0/+2 | |
| | | | | | | [#765 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Ensure :dependent => :delete_all works for association with hash conditions | Pratik Naik | 2009-04-20 | 1 | -1/+1 | |
| | ||||||
* | Ensure JoinAssociation uses aliased table name when multiple associations ↵ | Pratik Naik | 2009-04-20 | 1 | -0/+2 | |
| | | | | have hash conditions on the same table | |||||
* | Add :having option to find, to use in combination with grouped finds. Also ↵ | miloops | 2008-12-01 | 1 | -0/+1 | |
| | | | | | | | added to has_many and has_and_belongs_to_many associations. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1028 state:committed] | |||||
* | explicitly including child associations that are also included in the parent ↵ | Will Bryant | 2008-10-10 | 1 | -0/+2 | |
| | | | | | | | association definition should not result in double records in the collection/double loads (#1110) Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1110 state:committed] | |||||
* | Revert "Add :accessible option to Associations for allowing mass assignments ↵ | Pratik Naik | 2008-09-10 | 1 | -1/+1 | |
| | | | | | | | | | | | | using hash. [#474 state:resolved]" This reverts commit e0750d6a5c7f621e4ca12205137c0b135cab444a. Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_collection.rb | |||||
* | Support :limit on update_all so that has_many with :limit can be safely updated | Tarmo Tänav | 2008-09-10 | 1 | -0/+1 | |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Test for eager loading of STI subclasses from htm associations | Tarmo Tänav | 2008-08-16 | 1 | -0/+3 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Add :accessible option to Associations for allowing mass assignments using ↵ | David Dollar | 2008-07-14 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | hash. [#474 state:resolved] Allows nested Hashes (i.e. from nested forms) to hydrate the appropriate ActiveRecord models. class Post < ActiveRecord::Base belongs_to :author, :accessible => true has_many :comments, :accessible => true end post = Post.create({ :title => 'Accessible Attributes', :author => { :name => 'David Dollar' }, :comments => [ { :body => 'First Post!' }, { :body => 'Nested Hashes are great!' } ] }) post.comments << { :body => 'Another Comment' } Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | fix eager loading with dynamic finders | Brandon Keepers | 2008-06-09 | 1 | -0/+1 | |
| | ||||||
* | Ensure hm:t preloading honours reflection options. [#137 state:resolved] | Frederick Cheung | 2008-05-11 | 1 | -0/+4 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Fixed that has_many :through would ignore the hash conditions (closes ↵ | David Heinemeier Hansson | 2008-03-28 | 1 | -0/+5 | |
| | | | | | | #11447) [miloops] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Merge the has_finder gem, renamed as 'named_scope'. Closes #11404 [nkallen] | Rick Olson | 2008-03-24 | 1 | -0/+2 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Add :readonly option to HasManyThrough associations. Closes #11156 [miloops] | Pratik Naik | 2008-03-07 | 1 | -1/+2 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Revert r8742: remove has_many with :group option since it has sketchy sql ↵ | Jeremy Kemper | 2008-02-03 | 1 | -1/+0 | |
| | | | | | | support. Closes #10480. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Make sure count works on has_many :through associations using :group. ↵ | Michael Koziarski | 2008-01-27 | 1 | -0/+1 | |
| | | | | | | Closes #10480 [remvee] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8742 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | belongs_to supports :dependent => :destroy and :delete. Closes #10592. | Jeremy Kemper | 2008-01-19 | 1 | -1/+13 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8675 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | move assets and models | Jeremy Kemper | 2008-01-18 | 1 | -0/+109 | |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |