Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | adding requires for constant dependencies | Aaron Patterson | 2012-11-07 | 1 | -0/+3 | |
|/ | ||||||
* | Add CollectionAssociation#destroy to ActiveRecord::Association::ClassMethods ↵ | Samuel Cochran | 2012-10-05 | 1 | -3/+15 | |
| | | | | code docs | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-09-21 | 1 | -1/+9 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/configurable.rb activesupport/lib/active_support/core_ext/module/deprecation.rb guides/source/action_controller_overview.md guides/source/active_support_core_extensions.md guides/source/ajax_on_rails.textile guides/source/association_basics.textile guides/source/upgrading_ruby_on_rails.md While resolving conflicts, I have chosen to ignore changes done in docrails at some places - these will be most likely 1.9 hash syntax changes. | |||||
| * | Add extra note about :dependent => :destroy. | Steve Klabnik | 2012-09-21 | 1 | -1/+4 | |
| | | | | | | | | Callbacks may interfere with each other. | |||||
| * | Doc typo: depenent -> dependent; trailing ws. | Henrik N | 2012-09-16 | 1 | -2/+2 | |
| | | ||||||
| * | Improve documentation about :dependent and callbacks. | Steve Klabnik | 2012-09-15 | 1 | -0/+5 | |
| | | | | | | | | Fixes #3458. | |||||
* | | Improve exception message for HasManyThroughAssociationPolymorphicSourceError | Sebastian Korfmann | 2012-09-10 | 1 | -1/+1 | |
|/ | | | | | Exception message was misleading, as it is possible to have a polymorphic 'has_many :through' join model. | |||||
* | Update the documentation for the :autosave option | David Celis | 2012-08-23 | 1 | -1/+3 | |
| | | | | | | | | | | | I've noticed a caveat with the :autosave option biting people before. Questions arise about why they must explicitly save an associated object in their own before_save callbacks. I've updated the documentation as such to note to users that the :autosave callback occurs before any user defined callbacks. They must save the associated record themselves if altering it in their own callbacks. Signed-off-by: David Celis <david@davidcelis.com> | |||||
* | fixup guides in light of :dependent changes | Jon Leighton | 2012-08-10 | 1 | -7/+7 | |
| | ||||||
* | Remove the dependent_restrict_raises option. | Jon Leighton | 2012-08-10 | 1 | -11/+16 | |
| | | | | | | | | | | | | | | | It's not really a good idea to have this as a global config option. We should allow people to specify the behaviour per association. There will now be two new values: * :dependent => :restrict_with_exception implements the current behaviour of :restrict. :restrict itself is deprecated in favour of :restrict_with_exception. * :dependent => :restrict_with_error implements the new behaviour - it adds an error to the owner if there are dependent records present See #4727 for the original discussion of this. | |||||
* | Update the docs to reflect the new association API | Jon Leighton | 2012-08-03 | 1 | -190/+80 | |
| | ||||||
* | load active_support/core_ext/module/delegation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 | |
| | ||||||
* | load active_support/core_ext/class/attribute in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 | |
| | ||||||
* | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 | |
| | ||||||
* | Revert "Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql." | Jon Leighton | 2012-08-01 | 1 | -0/+31 | |
| | | | | | | | | | This reverts commit 3803fcce26b837c0117f7d278b83c366dc4ed370. Conflicts: activerecord/CHANGELOG.md It will be deprecated only in 4.0, and removed properly in 4.1. | |||||
* | Explaining a bit better about the default behaviour of dependent | Rodrigo Flores | 2012-07-28 | 1 | -1/+2 | |
| | ||||||
* | Missed extend for eager_autoload | Dmitry Vorotilin | 2012-07-26 | 1 | -0/+1 | |
| | ||||||
* | Merge pull request #7161 from ↵ | Jon Leighton | 2012-07-26 | 1 | -5/+7 | |
|\ | | | | | | | | | michaelfairley/eager_load_active_record_association_helpers Eager autoload ActiveRecord association helpers | |||||
| * | Eager autoload ActiveRecord association helpers | Michael Fairley | 2012-07-25 | 1 | -5/+7 | |
| | | ||||||
* | | Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql. | Jon Leighton | 2012-07-20 | 1 | -31/+0 | |
| | | ||||||
* | | Avoid options ever being nil | Jon Leighton | 2012-07-20 | 1 | -4/+4 | |
| | | | | | | | | This fixes active_record_deprecated_finders. | |||||
* | | Allow associations to take a lambda which builds the scope | Jon Leighton | 2012-07-13 | 1 | -8/+8 | |
| | | ||||||
* | | Mention effect of accepts_nested_attributes_for on association autosave ↵ | Chris Gunther | 2012-06-27 | 1 | -0/+8 | |
| | | | | | | | | option [ci skip] | |||||
* | | Update AR has_one association example | Alexey Vakhov | 2012-05-16 | 1 | -1/+1 | |
| | | ||||||
* | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-05-04 | 1 | -8/+8 | |
|\ \ | ||||||
| * | | simpler wording and explanations | Hrvoje Šimić | 2012-05-01 | 1 | -8/+8 | |
| | | | ||||||
* | | | Change the example for habtm association to use proc according to changelog | Alexander Zubkov | 2012-03-29 | 1 | -1/+1 | |
|/ / | ||||||
* | | added clarification stating the counter_cache attribute needs to be created ↵ | Michael de Silva | 2012-03-11 | 1 | -1/+3 | |
| | | | | | | | | on the associate class via a migration | |||||
* | | Fix doc examples for has_and_belongs_to_many association | Braden Schaeffer | 2012-03-05 | 1 | -2/+2 | |
|/ | ||||||
* | suggested fixes for :dependent => :restrict deprecation. | Manoj | 2012-01-31 | 1 | -2/+4 | |
| | ||||||
* | has_many/has_one, :dependent => :restrict, deprecation added. | Manoj | 2012-01-29 | 1 | -4/+2 | |
| | ||||||
* | removed unnecessary require for activesupport/core_ext/array/wrap | Karunakar (Ruby) | 2012-01-07 | 1 | -1/+0 | |
| | ||||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2011-12-14 | 1 | -1/+1 | |
|\ | ||||||
| * | changed :finder_sql example to select * | clst | 2011-12-12 | 1 | -1/+1 | |
| | | | | | | because with select p.* you can no longer use count(). Using count will result in an SQL error message. | |||||
| * | fixed example for :finder_sql | clst | 2011-12-12 | 1 | -1/+1 | |
| | | | | | | people.* will not work when the alias is named p | |||||
* | | fix nodocs | Vijay Dev | 2011-12-09 | 1 | -1/+1 | |
|/ | ||||||
* | s/is is/is | Vijay Dev | 2011-12-01 | 1 | -1/+1 | |
| | ||||||
* | changelog & docs for GeneratedFeatureMethods | Josh Susser | 2011-11-27 | 1 | -0/+20 | |
| | ||||||
* | Add some note on adding index to HABTM table | Prem Sichanugrist | 2011-10-20 | 1 | -0/+4 | |
| | ||||||
* | Use new migration style in HABTM join table | Prem Sichanugrist | 2011-10-20 | 1 | -5/+1 | |
| | | | Yes, we're on Rails 3.1 now. | |||||
* | fixing docs for delete_sql where quotes should be used in this example. | Diego Plentz | 2011-09-26 | 1 | -1/+1 | |
| | ||||||
* | [:class_name] option in belongs_to should mention belongs_to and not has_one | Erik Behrends | 2011-09-13 | 1 | -1/+1 | |
| | ||||||
* | Updated the docs for the has_many :finder_sql option to reflect changes made ↵ | Alan Larkin | 2011-08-20 | 1 | -6/+10 | |
| | | | | in #a7e19b30ca71f62af516, i.e. the use of Procs when interpolation of the SQL is required. | |||||
* | Add a proxy_association method to association proxies, which can be called ↵ | Jon Leighton | 2011-07-27 | 1 | -0/+6 | |
| | | | | by association extensions to access information about the association. This replaces proxy_owner etc with proxy_association.owner. | |||||
* | :joins => joins | Akira Matsuda | 2011-07-08 | 1 | -12/+12 | |
| | ||||||
* | :include => includes | Akira Matsuda | 2011-07-08 | 1 | -7/+7 | |
| | ||||||
* | find(:first) => first | Akira Matsuda | 2011-07-08 | 1 | -5/+5 | |
| | ||||||
* | find(:all) => all | Akira Matsuda | 2011-07-08 | 1 | -18/+18 | |
| | ||||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-06-06 | 1 | -4/+4 | |
|\ | | | | | | | | | Conflicts: activerecord/RUNNING_UNIT_TESTS | |||||
| * | Fix font styling on associations.rb | Sebastian Martinez | 2011-05-26 | 1 | -4/+4 | |
| | |