Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bring back support for passing a callable object to the default_scope macro. ↵ | Jon Leighton | 2011-04-18 | 1 | -0/+11 |
| | | | | You can also just use a block. | ||||
* | Un-deprecate using 'default_scope' as a macro, but if you are calling the ↵ | Jon Leighton | 2011-04-18 | 1 | -9/+18 |
| | | | | macro multiple times that will give deprecation warnings, and in 3.2 we will simply overwrite the default scope when you call the macro multiple times. | ||||
* | Revert "Deprecate defining scopes with a callable (lambda, proc, etc) via ↵ | Jon Leighton | 2011-04-17 | 1 | -18/+0 |
| | | | | | | | | | | the scope class method. Just define a class method yourself instead." This reverts commit f0e198bfa1e3f9689e0cde1d194a44027fc90b3c. Conflicts: activerecord/test/models/post.rb | ||||
* | Deprecate defining scopes with a callable (lambda, proc, etc) via the scope ↵ | Jon Leighton | 2011-04-12 | 1 | -0/+18 |
| | | | | class method. Just define a class method yourself instead. | ||||
* | Evaluate default scopes at the last possible moment in order to avoid ↵ | Jon Leighton | 2011-04-12 | 1 | -0/+11 |
| | | | | problems with default scopes getting included into other scopes and then being unable to remove the default part via unscoped. | ||||
* | Deprecated support for passing hashes and relations to default_scope, in ↵ | Jon Leighton | 2011-04-12 | 1 | -0/+21 |
| | | | | favour of defining a 'default_scope' class method in the model. See the CHANGELOG for more details. | ||||
* | adding pg support notes to the changelog | Aaron Patterson | 2011-04-10 | 1 | -0/+2 |
| | |||||
* | proxy body responses so we close database connections after body is flushed | Aaron Patterson | 2011-03-29 | 1 | -0/+3 |
| | |||||
* | Added new #update_column method. | Sebastian Martinez | 2011-03-27 | 1 | -0/+9 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2011-03-05 | 1 | -0/+3 |
|\ | | | | | | | | | Conflicts: activerecord/CHANGELOG | ||||
| * | implements ActiveRecord::Base.connection_config to be able to check the ↵ | Xavier Noria | 2011-03-05 | 1 | -0/+3 |
| | | | | | | | | configuration of the current connection at runtime | ||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2011-03-04 | 1 | -4/+0 |
|\| | |||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2011-03-04 | 1 | -3/+175 |
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/class_methods/join_dependency.rb activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb activerecord/lib/active_record/associations/has_many_association.rb activerecord/lib/active_record/associations/has_many_through_association.rb activerecord/lib/active_record/associations/has_one_association.rb activerecord/lib/active_record/associations/has_one_through_association.rb activerecord/lib/active_record/associations/through_association_scope.rb activerecord/lib/active_record/reflection.rb activerecord/test/cases/associations/has_many_through_associations_test.rb activerecord/test/cases/associations/has_one_through_associations_test.rb activerecord/test/cases/reflection_test.rb activerecord/test/cases/relations_test.rb activerecord/test/fixtures/memberships.yml activerecord/test/models/categorization.rb activerecord/test/models/category.rb activerecord/test/models/member.rb activerecord/test/models/reference.rb activerecord/test/models/tagging.rb | ||||
| * | removing limits and offsets from COUNT queries unless both are specified. ↵ | Aaron Patterson | 2011-02-25 | 1 | -0/+9 |
| | | | | | | | | [#6268 state:resolved] | ||||
| * | Split AssociationProxy into an Association class (and subclasses) which ↵ | Jon Leighton | 2011-02-18 | 1 | -0/+12 |
| | | | | | | | | manages the association, and a CollectionProxy class which is *only* a proxy. Singular associations no longer have a proxy. See CHANGELOG for more. | ||||
| * | Allow building and then later saving has_many :through records, such that ↵ | Jon Leighton | 2011-02-18 | 1 | -0/+24 |
| | | | | | | | | the join record is automatically saved too. This requires the :inverse_of option to be set on the source association in the join model. See the CHANGELOG for details. [#4329 state:resolved] | ||||
| * | Add interpolation of association conditions back in, in the form of proc { ↵ | Jon Leighton | 2011-02-14 | 1 | -2/+21 |
| | | | | | | | | ... } rather than instance_eval-ing strings | ||||
| * | Support the :dependent option on has_many :through associations. For ↵ | Jon Leighton | 2011-02-07 | 1 | -0/+8 |
| | | | | | | | | historical and practical reasons, :delete_all is the default deletion strategy employed by association.delete(*records), despite the fact that the default strategy is :nullify for regular has_many. Also, this only works at all if the source reflection is a belongs_to. For other situations, you should directly modify the through association. | ||||
| * | Make record.association.destroy(*records) on habtm and hm:t only delete ↵ | Jon Leighton | 2011-02-07 | 1 | -0/+19 |
| | | | | | | | | records in the join table. This is to make the destroy method more consistent across the different types of associations. For more details see the CHANGELOG entry. | ||||
| * | Add :bulk => true option to change_table | Pratik Naik | 2011-01-31 | 1 | -0/+13 |
| | | |||||
| * | Add CHANGELOG entry for the addition of create_association! methods on ↵ | Jon Leighton | 2011-01-16 | 1 | -0/+2 |
| | | | | | | | | has_one and belongs_to | ||||
| * | Removed support for accessing attributes on a has_and_belongs_to_many join ↵ | Jon Leighton | 2011-01-16 | 1 | -1/+5 |
| | | | | | | | | table. This has been documented as deprecated behaviour since April 2006. Please use has_many :through instead. A deprecation warning will be added to the 3-0-stable branch for the 3.0.4 release. | ||||
| * | updates AR's CHANGELOG with changes in 9e64dfa and ad343d7 | Xavier Noria | 2011-01-16 | 1 | -0/+4 |
| | | |||||
| * | Aligning master changelog w/ 3-0-stable | Kevin Moore | 2011-01-09 | 1 | -1/+9 |
| | | |||||
| * | removing SQL interpolation, please use scoping and attribute conditionals as ↵ | Aaron Patterson | 2010-12-22 | 1 | -0/+3 |
| | | | | | | | | a replacement | ||||
| * | Remove weak_passwords list and the length/strong password validator, leave ↵ | Santiago Pastorino | 2010-12-19 | 1 | -5/+5 |
| | | | | | | | | that up to the programmer | ||||
| * | Switch from SHA2 to BCrypt (easy Windows compatibility is coming shortly ↵ | David Heinemeier Hansson | 2010-12-18 | 1 | -1/+1 |
| | | | | | | | | with new compiled gem) | ||||
| * | Added ActiveRecord::Base#has_secure_password (via ↵ | David Heinemeier Hansson | 2010-12-18 | 1 | -0/+19 |
| | | | | | | | | ActiveModel::SecurePassword) to encapsulate dead-simple password usage with SHA2 encryption and salting | ||||
| * | Generate add_index by default when giving type belongs_to or references | Santiago Pastorino | 2010-12-16 | 1 | -0/+22 |
| | | |||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2010-12-12 | 1 | -1/+6 |
|\| | | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/associations/class_methods/join_dependency.rb activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb activerecord/lib/active_record/associations/has_many_through_association.rb | ||||
| * | updating CHANGELOG | Aaron Patterson | 2010-12-08 | 1 | -0/+3 |
| | | |||||
| * | rolling out migrated_at until I can fix the build | Aaron Patterson | 2010-12-01 | 1 | -4/+0 |
| | | |||||
| * | updating CHANGELOG | Aaron Patterson | 2010-12-01 | 1 | -0/+4 |
| | | |||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2010-11-27 | 1 | -0/+38 |
|\| | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/associations.rb | ||||
| * | updating changelog for dup and clone semantics | Aaron Patterson | 2010-11-23 | 1 | -0/+11 |
| | | |||||
| * | wtf vim | Aaron Patterson | 2010-11-19 | 1 | -1/+1 |
| | | |||||
| * | adding Migration#change to the CHANGELOG | Aaron Patterson | 2010-11-19 | 1 | -0/+18 |
| | | |||||
| * | updating CHANGELOG | Aaron Patterson | 2010-11-17 | 1 | -0/+9 |
| | | |||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2010-11-17 | 1 | -0/+29 |
|\| | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/has_many_through_association.rb activerecord/test/cases/associations/has_many_through_associations_test.rb | ||||
| * | syncs CHANGELOGs for 3.0.2 in 3-0-stable with the ones in master | Xavier Noria | 2010-11-09 | 1 | -0/+29 |
| | | |||||
* | | Merge branch 'master' into nested_has_many_through | Jon Leighton | 2010-10-28 | 1 | -0/+3 |
|\| | | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/test/schema/schema.rb | ||||
| * | has_one maintains the association with separate after_create/after_update | Xavier Noria | 2010-10-22 | 1 | -0/+3 |
| | | | | | | | | | | This way parent models can get their own after_create and after_update callbacks fired after has_one has done its job. | ||||
* | | Add a CHANGELOG entry about nested through associations | Jon Leighton | 2010-10-19 | 1 | -0/+2 |
|/ | |||||
* | Merge CHANGELOGs from 3-0-stable | Santiago Pastorino | 2010-10-18 | 1 | -0/+4 |
| | |||||
* | removing nonsensical tests, limit now actually adds a limit | Aaron Patterson | 2010-09-15 | 1 | -1/+13 |
| | |||||
* | Update CHANGELOGs for 3.0 release and upcoming 3.1 | Jeremy Kemper | 2010-08-29 | 1 | -16/+2 |
| | |||||
* | Clean up CHANGELOGs | Jeremy Kemper | 2010-08-28 | 1 | -0/+10 |
| | |||||
* | change 'a SQL' to 'an SQL' as suggested by the api documentation guidelines | Jaime Iniesta | 2010-08-26 | 1 | -2/+2 |
| | |||||
* | lifecycle should be two words, life cycle | Jaime Iniesta | 2010-08-26 | 1 | -1/+1 |
| | |||||
* | applied guidelines to "# =>" | Paco Guzman | 2010-08-12 | 1 | -1/+1 |
| |