aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
Commit message (Collapse)AuthorAgeFilesLines
* Add a proxy_association method to association proxies, which can be called ↵Jon Leighton2011-08-131-0/+6
| | | | by association extensions to access information about the association. This replaces proxy_owner etc with proxy_association.owner.
* registers the recent change to date multiparameter handling in the CHANGELOGXavier Noria2011-07-231-0/+5
|
* adding changelog entry for connection urlsAaron Patterson2011-07-211-0/+5
|
* Raise an ArgumentError if user passing less number of argument in the ↵Prem Sichanugrist2011-07-171-0/+14
| | | | | | | | | | | | | dynamic finder The previous behavior was unintentional, and some people was relying on it. Now the dynamic finder will always expecting the number of arguments to be equal or greater (so you can still pass the options to it.) So if you were doing this and expecting the second argument to be nil: User.find_by_username_and_group("sikachu") You'll now get `ArgumentError: wrong number of arguments (1 for 2).` You'll then have to do this: User.find_by_username_and_group("sikachu", nil)
* Assign the association attributes to the associated record before the ↵Jon Leighton2011-06-301-0/+12
| | | | before_initialize callback of the record runs. Fixes #1842.
* Revert "updated Changelog "Xavier Noria2011-06-061-1/+6
| | | | | | | | | | This reverts commit 79990505e5080804b53d81fec059136afa2237d7. Conflicts: activerecord/CHANGELOG Reason: Sorry, CHANGELOGs can't be edited via docrails.
* Revise documentation indentation from [79990505e5080804b53d81fec059136afa2237d7]Prem Sichanugrist2011-06-031-6/+6
|
* updated Changelog ganesh2011-06-041-12/+6
|
* Adding pluralize_table_names change to CHANGELOGGuillermo Iguaran2011-05-211-0/+8
|
* Add block setting of attributes to singular associationsAndrew White2011-05-171-0/+10
|
* Add ActiveRecord::attribute_names to retrieve a list of attribute names. ↵Prem Sichanugrist2011-05-151-0/+2
| | | | This method will also return an empty array on an abstract class or a model that the table doesn't exists.
* updated AR#create! to accept an options hash so the mass-assignment security ↵Josh Kalderimis2011-05-121-13/+15
| | | | role can be passed in, also updated the Changelog to mention the change to some of the AR method signatures.
* deprecating CSV fixture supportAaron Patterson2011-05-101-0/+2
|
* Merging 3.0.x CHANGELOGsGuillermo Iguaran2011-05-101-0/+80
|
* Update CHANGELOGs.José Valim2011-05-061-19/+16
|
* 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
| |