aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
Commit message (Collapse)AuthorAgeFilesLines
* Bring back support for passing a callable object to the default_scope macro. ↵Jon Leighton2011-04-181-0/+11
| | | | You can also just use a block.
* Un-deprecate using 'default_scope' as a macro, but if you are calling the ↵Jon Leighton2011-04-181-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 Leighton2011-04-171-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 Leighton2011-04-121-0/+18
| | | | class method. Just define a class method yourself instead.
* Evaluate default scopes at the last possible moment in order to avoid ↵Jon Leighton2011-04-121-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 Leighton2011-04-121-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 changelogAaron Patterson2011-04-101-0/+2
|
* proxy body responses so we close database connections after body is flushedAaron Patterson2011-03-291-0/+3
|
* Added new #update_column method.Sebastian Martinez2011-03-271-0/+9
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Merge branch 'master' into nested_has_many_throughJon Leighton2011-03-051-0/+3
|\ | | | | | | | | Conflicts: activerecord/CHANGELOG
| * implements ActiveRecord::Base.connection_config to be able to check the ↵Xavier Noria2011-03-051-0/+3
| | | | | | | | configuration of the current connection at runtime
* | Merge branch 'master' into nested_has_many_throughJon Leighton2011-03-041-4/+0
|\|
* | Merge branch 'master' into nested_has_many_throughJon Leighton2011-03-041-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 Patterson2011-02-251-0/+9
| | | | | | | | [#6268 state:resolved]
| * Split AssociationProxy into an Association class (and subclasses) which ↵Jon Leighton2011-02-181-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 Leighton2011-02-181-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 Leighton2011-02-141-2/+21
| | | | | | | | ... } rather than instance_eval-ing strings
| * Support the :dependent option on has_many :through associations. For ↵Jon Leighton2011-02-071-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 Leighton2011-02-071-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_tablePratik Naik2011-01-311-0/+13
| |
| * Add CHANGELOG entry for the addition of create_association! methods on ↵Jon Leighton2011-01-161-0/+2
| | | | | | | | has_one and belongs_to
| * Removed support for accessing attributes on a has_and_belongs_to_many join ↵Jon Leighton2011-01-161-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 ad343d7Xavier Noria2011-01-161-0/+4
| |
| * Aligning master changelog w/ 3-0-stableKevin Moore2011-01-091-1/+9
| |
| * removing SQL interpolation, please use scoping and attribute conditionals as ↵Aaron Patterson2010-12-221-0/+3
| | | | | | | | a replacement
| * Remove weak_passwords list and the length/strong password validator, leave ↵Santiago Pastorino2010-12-191-5/+5
| | | | | | | | that up to the programmer
| * Switch from SHA2 to BCrypt (easy Windows compatibility is coming shortly ↵David Heinemeier Hansson2010-12-181-1/+1
| | | | | | | | with new compiled gem)
| * Added ActiveRecord::Base#has_secure_password (via ↵David Heinemeier Hansson2010-12-181-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 referencesSantiago Pastorino2010-12-161-0/+22
| |
* | Merge branch 'master' into nested_has_many_throughJon Leighton2010-12-121-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 CHANGELOGAaron Patterson2010-12-081-0/+3
| |
| * rolling out migrated_at until I can fix the buildAaron Patterson2010-12-011-4/+0
| |
| * updating CHANGELOGAaron Patterson2010-12-011-0/+4
| |
* | Merge branch 'master' into nested_has_many_throughJon Leighton2010-11-271-0/+38
|\| | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/associations.rb
| * updating changelog for dup and clone semanticsAaron Patterson2010-11-231-0/+11
| |
| * wtf vimAaron Patterson2010-11-191-1/+1
| |
| * adding Migration#change to the CHANGELOGAaron Patterson2010-11-191-0/+18
| |
| * updating CHANGELOGAaron Patterson2010-11-171-0/+9
| |
* | Merge branch 'master' into nested_has_many_throughJon Leighton2010-11-171-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 masterXavier Noria2010-11-091-0/+29
| |
* | Merge branch 'master' into nested_has_many_throughJon Leighton2010-10-281-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_updateXavier Noria2010-10-221-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 associationsJon Leighton2010-10-191-0/+2
|/
* Merge CHANGELOGs from 3-0-stableSantiago Pastorino2010-10-181-0/+4
|
* removing nonsensical tests, limit now actually adds a limitAaron Patterson2010-09-151-1/+13
|
* Update CHANGELOGs for 3.0 release and upcoming 3.1Jeremy Kemper2010-08-291-16/+2
|
* Clean up CHANGELOGsJeremy Kemper2010-08-281-0/+10
|
* change 'a SQL' to 'an SQL' as suggested by the api documentation guidelinesJaime Iniesta2010-08-261-2/+2
|
* lifecycle should be two words, life cycleJaime Iniesta2010-08-261-1/+1
|
* applied guidelines to "# =>"Paco Guzman2010-08-121-1/+1
|