Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ActionMailer deliver method Documentation corrected Ticket #761 | Ganesh Kumar | 2011-05-21 | 1 | -1/+1 |
| | |||||
* | Prefer each instead of for in | Guillermo Iguaran | 2011-05-19 | 1 | -3/+1 |
| | |||||
* | Add documentation for new observer enable/disable feature. | Myron Marston | 2011-05-06 | 1 | -2/+7 |
| | |||||
* | Improved ActiveModel Observing docs. | Sebastian Martinez | 2011-04-30 | 1 | -2/+4 |
| | |||||
* | Fix bug with AM::Observer disablement. | Myron Marston | 2011-04-28 | 1 | -3/+9 |
| | | | | | Now that we propagate the enabling/disabling to descendants, we no longer have to check the disabled_observer Set on each superclass of the model class. This was causing a bug when disabling all observers at a superclass level and then enabling an individual observer at a subclass level. Plus the logic is simpler now :). | ||||
* | Fix dev env memory leaks by using AS::DescendantsTracker rather than keeping ↵ | Myron Marston | 2011-04-28 | 1 | -23/+7 |
| | | | | | track of subclasses manually. There's also no need to keep track of all ObserverArray instances in a hash, as this is likely to leak memory, too. | ||||
* | Revert "Revert "Handle enabling/disabling observers at different levels of ↵ | Myron Marston | 2011-04-28 | 1 | -0/+5 |
| | | | | | | | | | the class hierarchy."" This reverts commit 2a25c5818b03d7d6cd63aad180bff23479dbd861. I'm going to add another commit that keeps the same behavior of fixes the problems of leaking memory in development. | ||||
* | Revert "Handle enabling/disabling observers at different levels of the class ↵ | José Valim | 2011-04-28 | 1 | -5/+0 |
| | | | | | | | | | | hierarchy." This reverts commit ad62f1928768bd2676958a4a08512bad342fe469 because the current subclasses implementation leaks memory in development. Instead of keeping an array of subclasses, the better solution is to ask the parent if an observer is being disabled or not. | ||||
* | Handle enabling/disabling observers at different levels of the class hierarchy. | Myron Marston | 2011-04-28 | 1 | -0/+5 |
| | | | | Last call wins. | ||||
* | Allow observers to be enabled and disabled. | Myron Marston | 2011-04-28 | 1 | -3/+24 |
| | | | | This is useful in situations like model unit tests and the occasional rake task to backfill old data. | ||||
* | Wrap line that is over 200 characters long. Now it's much easier to read. | Myron Marston | 2011-04-28 | 1 | -1/+5 |
| | |||||
* | minor correction to the Active Model instantiate_observers doc | Josh Kalderimis | 2011-04-22 | 1 | -1/+1 |
| | |||||
* | remove unused assigned variable | Paco Guzman | 2011-03-06 | 1 | -1/+1 |
| | |||||
* | copy-edits 6d7a826 | Xavier Noria | 2011-02-21 | 1 | -3/+3 |
| | |||||
* | Documentation: Added small comments to Observering module | Nicholas Rowe | 2011-02-20 | 1 | -0/+3 |
| | |||||
* | add note about observer config for rails apps | Jimmy Cuadra | 2011-02-16 | 1 | -0/+4 |
| | | | | | | | | ActiveModel::Observer and ActiveRecord::Observer have similar documentation, but a Rails user looking at the ActiveModel version might not realize that a change to config/application.rb is required to activate the observer. This change adds a note to that effect, pointing to the AR version from the AM version. | ||||
* | Remove reference to ActiveRecord from ActiveModel comments | brainopia | 2011-01-15 | 1 | -3/+7 |
| | |||||
* | reader method eliminates defined? checks | Subba Rao Pasupuleti | 2010-09-01 | 1 | -7/+9 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | lifecycle should be two words, life cycle | Jaime Iniesta | 2010-08-26 | 1 | -1/+1 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -7/+7 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Improve a bit the code in latest commits. | José Valim | 2010-07-08 | 1 | -1/+2 |
| | |||||
* | Removing method before redefining it. It was causing warnings. [#5072 ↵ | Łukasz Strzałkowski | 2010-07-08 | 1 | -0/+1 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move constantize from conversions to inflections. | Santiago Pastorino | 2010-06-26 | 1 | -1/+0 |
| | | | | | | | | This removes ActiveModel dependency on TZInfo. [#4979 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Revised and added headings. | Rizwan Reza | 2010-06-14 | 1 | -0/+4 |
| | |||||
* | Observing module is using constantize | Santiago Pastorino | 2010-06-06 | 1 | -0/+1 |
| | |||||
* | Fix Active Model observer tests | Jeremy Kemper | 2010-04-16 | 1 | -0/+4 |
| | |||||
* | ActiveModel::Observing: stop using Observable Ruby module, re-implement ↵ | Mislav Marohnić | 2010-04-16 | 1 | -7/+16 |
| | | | | | | | | | `notify_observers` `Observable#notify_observers` from Ruby always returns false (which halts ActiveRecord callback chains) and has extra features (like `changed`) that were never used. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fixing documentation on ActiveModel::Observer#observed_classes | Gavin Stark | 2010-01-18 | 1 | -1/+1 |
| | |||||
* | Fixing documentation for ActiveModel::Observer | Mikel Lindsaar | 2010-01-17 | 1 | -8/+13 |
| | |||||
* | Kill AMo observing wrap_with_notifications since ARes was only using it | Joshua Peek | 2009-09-02 | 1 | -17/+0 |
| | |||||
* | Improve AMo observing docs | Joshua Peek | 2009-07-21 | 1 | -4/+73 |
| | |||||
* | Add wrap_with_notifications helper to AMo observing | Joshua Peek | 2009-07-20 | 1 | -2/+20 |
| | |||||
* | Move observing notify helper into AMo | Joshua Peek | 2009-06-11 | 1 | -0/+6 |
| | |||||
* | Fix observing AS dependencies | Joshua Peek | 2009-06-11 | 1 | -0/+2 |
| | |||||
* | Integrate ActiveModel::Observing into ActiveRecord | Joshua Peek | 2009-06-10 | 1 | -46/+62 |
| | |||||
* | Get rid of active_model/core and active_model/callbacks | Pratik Naik | 2009-03-21 | 1 | -1/+0 |
| | |||||
* | tweak activemodel load order a bit | rick | 2008-06-27 | 1 | -10/+8 |
| | |||||
* | initial experimental commit of active_model | Rick Olson | 2007-11-09 | 1 | -0/+100 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |