Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Some editorial changes on the documentation. | Rafael Mendonça França | 2013-05-12 | 1 | -23/+23 | |
| | | | | | | | | * Remove some autolinks * Fix the rendered result * Change sql to SQL [ci skip] | |||||
* | Adding documentation to the automatic inverse_of finder. | wangjohn | 2013-05-11 | 1 | -0/+21 | |
| | ||||||
* | Document collection.create! on has_many associations in ActiveRecord | Mario Visic | 2013-04-15 | 1 | -0/+4 | |
| | ||||||
* | Prefer find_by over dynamic finders in rdoc | Sam Ruby | 2013-04-02 | 1 | -1/+1 | |
| | ||||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-03-30 | 1 | -4/+4 | |
|\ | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/adapter_test.rb guides/source/testing.md [ci skip] | |||||
| * | Minor copy editing | Neeraj Singh | 2013-03-11 | 1 | -4/+4 | |
| | | ||||||
* | | Fix some typos in AR- CHANGELOG, tests, method doc. fixed | Vipul A M | 2013-03-20 | 1 | -1/+1 | |
| | | ||||||
* | | rename `Relation#uniq` to `Relation#distinct`. `#uniq` still works. | Yves Senn | 2013-03-15 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | The similarity of `Relation#uniq` to `Array#uniq` is confusing. Since our Relation API is close to SQL terms I renamed `#uniq` to `#distinct`. There is no deprecation. `#uniq` and `#uniq!` are aliases and will continue to work. I also updated the documentation to promote the use of `#distinct`. | |||||
* | | document habtm join-table name with custom prefix [ci skip]. | Yves Senn | 2013-03-10 | 1 | -0/+2 | |
| | | | | | | | | | | | | Closes #9643. The logic was introduced with 46492949 | |||||
* | | Merge pull request #9630 from robertjwhitney/update_collection_docs | Carlos Antonio da Silva | 2013-03-09 | 1 | -2/+2 | |
|\ \ | |/ |/| | Update documentation for collection<< to reflect behavior for new parent objects. | |||||
| * | Update documentation for collection<< to reflect << on new records. | Robert Whitney | 2013-03-09 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | collection<< does not automatically fire update sql unless the parent object is not a new record (and thus has a primary key). eg: p = Post.new p.comments << Comment.new does not call update sql until: p.save at which point it saves the parent object and then the collection object. changes that to the | |||||
* | | Typppo | Akira Matsuda | 2013-03-06 | 1 | -1/+1 | |
|/ | ||||||
* | Fix typo | Carson McDonald | 2013-03-05 | 1 | -1/+1 | |
| | ||||||
* | Updated doc to clarify about update_all and delete_all | Neeraj Singh | 2013-02-24 | 1 | -2/+2 | |
| | | | | | | | | delete_all will call callbacks if depdent option is specified as :destroy. This behavior is not very clear from the documetation and hence issue #7832 was raised. closes #7832 | |||||
* | Fix typo | Tatsuro Baba | 2013-01-22 | 1 | -1/+1 | |
| | ||||||
* | 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] |