Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |