aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/callbacks.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove doc for debugging callbacks. Methods don't exist in Rails masterRafael Mendonça França2010-10-131-10/+0
|
* Cleanup deprecation warnings in active recordCarlos Antonio da Silva2010-09-061-17/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* lifecycle should be two words, life cycleJaime Iniesta2010-08-261-2/+2
|
* fisting after_rollback and after commit callbacksAaron Patterson2010-08-201-1/+1
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-24/+24
| | | | 's/[ \t]*$//' -i {} \;)
* fixing documentationNeeraj Singh2010-08-031-2/+2
|
* Merge remote branch 'docrails/master' into 3-0-stableXavier Noria2010-08-031-31/+35
|\
| * ensuring that description does not exceed 100 columnsNeeraj Singh2010-08-021-31/+35
| |
* | Add an internal (private API) after_touch callback. [#5271 state:resolved]José Valim2010-08-021-2/+6
|/
* Merge remote branch 'rails/master'Xavier Noria2010-06-201-25/+2
|\ | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb
| * ActiveModel::Validations::Callbacks should not be required by default.José Valim2010-06-191-8/+2
| |
| * moving before_validation and after_validation functionality from ↵Neeraj Singh2010-06-191-20/+3
| | | | | | | | | | | | | | | | ActiveRecord to ActiveModel [#4653 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* | Adds title and basic description where needed.Rizwan Reza2010-06-151-0/+2
|/
* update docs before_validation_on_create => before_validation(:on => :create)Santiago Pastorino and José Ignacio Costa2010-06-071-1/+1
|
* eliminate alias_method_chain from ActiveRecordwycats2010-05-091-32/+16
|
* say something about after_(commit|rollback) in callbacks.rb, the fact that ↵Xavier Noria2010-05-021-1/+6
| | | | their implementation is elsewhere is not important for rdoc purposes
* Avoid deprecated String#to_a by using Array.wrap(...) instead of Array(...)Jeremy Kemper2010-04-101-2/+4
|
* Add debugging documentation for _callback_chain to ActiveRecord::Callbackchrisfinne2010-03-261-0/+10
| | | | Signed-off-by: Rizwan Reza <rizwanreza@gmail.com>
* Ensure deprecated validate methods are invoked when they are private [#3214 ↵José Valim2010-01-181-1/+1
| | | | status:resolved]
* Ensure before_validation and after_validation accepts :on as option.José Valim2010-01-061-2/+20
|
* Get rid of DeprecatedCallbacks in ActiveRecord::Associations and finally ↵José Valim2009-12-301-1/+1
| | | | remove it.
* Move ActiveRecord callbacks implementation to ActiveModel and make use of it.José Valim2009-12-281-54/+5
| | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Callbacks, DeprecatedCallbacks = NewCallbacks, CallbacksJoshua Peek2009-10-121-2/+2
|
* Refactor new callbacks and AR implementation.José Valim2009-09-081-59/+20
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Changed ActiveRecord to use new callbacks and speed up observers by only ↵José Valim2009-09-081-129/+126
| | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix warnings in AMoJoshua Peek2009-09-051-1/+1
|
* Merge docrailsPratik Naik2009-07-251-1/+17
|
* Add wrap_with_notifications helper to AMo observingJoshua Peek2009-07-201-1/+1
|
* Move observing notify helper into AMoJoshua Peek2009-06-111-5/+0
|
* Break up DependencyModule's dual function of providing a "depend_on" DSL and ↵Joshua Peek2009-05-281-1/+1
| | | | "included" block DSL into separate modules. But, unify both approaches under AS::Concern.
* Use DependencyModule for included hooks in ActiveRecordBryan Helmkamp2009-05-111-5/+7
|
* Merge with docrailsPratik Naik2009-02-241-5/+33
|
* Merge docrailsPratik Naik2009-01-181-1/+1
|
* Fixed broken after_save callback; was being called when before_create was ↵Michael Lovitt2009-01-161-2/+3
| | | | | | | canceled or before_update was canceled Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1735 state:committed]
* Merge docrailsPratik Naik2008-10-161-2/+3
|
* Merge docrailsPratik Naik2008-09-031-2/+8
|
* Rollback the transaction when a before_* callback returns false.Xavier Noria2008-08-241-0/+12
| | | | | | | Previously this would have committed the transaction but not carried out save or destroy operation. [#891 state:committed] Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Merge with docrails.Pratik Naik2008-07-161-1/+1
|
* Changing order of equality because comparing certain objects with false ↵Lucas Carlson2008-07-021-2/+2
| | | | | | | | | | | | | raises an error. >> require 'md5' => true >> MD5.new("Asds") == false TypeError: can't convert false into String from (irb):2:in `==' from (irb):2 >> false == MD5.new("Asds") => false
* Callbacks fire before notifying observers [#230 state:resolved]Craig Demyanovich2008-06-031-2/+2
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Merge docrails.Pratik Naik2008-05-251-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Partial updates include only unsaved attributes. Off by default; set ↵Jeremy Kemper2008-03-311-2/+2
| | | | | | YourClass.partial_updates = true to enable. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extract ActiveSupport::Callbacks from Active Record, test case setup and ↵Jeremy Kemper2008-01-191-35/+6
| | | | | | teardown, and ActionController::Dispatcher. Closes #10727. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typos (closes #10378)David Heinemeier Hansson2007-12-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change plings to the more conventional quotes in the documentation. Closes ↵Marcel Molina2007-11-121-1/+1
| | | | | | #10104 [danger] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Smattering of grammatical fixes to documentation. Closes #10083 [BobSilva]Marcel Molina2007-11-081-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Performance: absorb instantiate and initialize_with_callbacks into the Base ↵Jeremy Kemper2007-08-311-33/+3
| | | | | | methods. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Formatting, grammar and spelling fixes for the associations documentation. ↵Michael Koziarski2007-08-281-50/+50
| | | | | | [seanhussey] Closes #8899 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Consistent public/protected/private visibility for chained methods. Closes ↵Jeremy Kemper2007-03-131-0/+4
| | | | | | #7813. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6396 5ecf4fe2-1ee6-0310-87b1-e25e094e27de