Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-01-09 | 1 | -8/+8 | |
|\ | | | | | | | | | Conflicts: guides/source/getting_started.md | |||||
| * | prefer american spelling of 'behavior' | Gosha Arinich | 2013-01-07 | 1 | -1/+1 | |
| | | ||||||
| * | remove meaningless use of Relation#all | Akira Matsuda | 2013-01-03 | 1 | -2/+2 | |
| | | | | | | | | particularly, `all(options)` would warn | |||||
| * | wrong model name | Akira Matsuda | 2013-01-02 | 1 | -1/+1 | |
| | | ||||||
| * | find + conditions is deprecated in AR 4 | Akira Matsuda | 2013-01-02 | 1 | -3/+3 | |
| | | ||||||
| * | find_or_create_by is deprecated in AR 4 | Akira Matsuda | 2013-01-02 | 1 | -2/+2 | |
| | | ||||||
* | | These are already required through AS/rails | Akira Matsuda | 2013-01-07 | 1 | -2/+0 | |
|/ | | | | | | * dependencies/autoload * concern * deprecation | |||||
* | Deprecate Relation#sum with a block. | Carlos Antonio da Silva | 2012-11-21 | 1 | -1/+1 | |
| | | | | | | | To perform a sum calculation over the array of elements, use to_a.sum(&block). Please check the discussion in f9cb645dfcb5cc89f59d2f8b58a019486c828c73 for more context. | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-11-17 | 1 | -53/+53 | |
|\ | | | | | | | | | Conflicts: actionpack/lib/action_dispatch/routing/redirection.rb | |||||
| * | 1.9 hash syntax changes | AvnerCohen | 2012-11-08 | 1 | -53/+53 | |
| | | ||||||
* | | Merge pull request #8116 from senny/7993_configure_counter_cache_for_has_many | Jon Leighton | 2012-11-09 | 1 | -0/+3 | |
|\ \ | | | | | | | :counter_cache option for to support custom named counter caches | |||||
| * | | :counter_cache option for to support custom named counter caches. Closes #7993 | Yves Senn | 2012-11-04 | 1 | -0/+3 | |
| |/ | ||||||
* / | 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 | |
| |