Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-08-04 | 1 | -47/+158 |
|\ | | | | | | | | | | | Conflicts: activemodel/lib/active_model/secure_password.rb activerecord/lib/active_record/associations/collection_proxy.rb | ||||
| * | update ActiveModel::Observer documentation [ci skip] | Francesco Rodriguez | 2012-07-31 | 1 | -21/+32 |
| | | |||||
| * | add :nodoc: to ActiveModel::Observing#inherited [ci skip] | Francesco Rodriguez | 2012-07-30 | 1 | -1/+1 |
| | | |||||
| * | update ActiveModel::Observing documentation [ci skip] | Francesco Rodriguez | 2012-07-30 | 1 | -25/+125 |
| | | |||||
* | | Remove ActiveRecord::Base.to_a | Jon Leighton | 2012-08-03 | 1 | -1/+1 |
| | | | | | | | | | | On reflection, it seems like a bit of a weird method to have on ActiveRecord::Base, and it shouldn't be needed most of the time anyway. | ||||
* | | load active_support/deprecation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | | |||||
* | | ActiveRecord::Base.all returns a Relation. | Jon Leighton | 2012-07-27 | 1 | -1/+1 |
|/ | | | | | | | | | | | Previously it returned an Array. If you want an array, call e.g. `Post.to_a` rather than `Post.all`. This is more explicit. In most cases this should not break existing code, since Relations use method_missing to delegate unknown methods to #to_a anyway. | ||||
* | observer update refactoring | Angelo Capilleri | 2012-07-03 | 1 | -2/+1 |
| | |||||
* | notify_observers should be public | Marc-Andre Lafortune | 2012-04-30 | 1 | -19/+18 |
| | |||||
* | Merge pull request #6063 from marcandre/observer_extra_args | Aaron Patterson | 2012-04-30 | 1 | -9/+17 |
|\ | | | | | Allow extra arguments for Observers | ||||
| * | Allow extra arguments for Observers | Marc-Andre Lafortune | 2012-04-30 | 1 | -9/+17 |
| | | |||||
* | | Merge pull request #6071 from marcandre/observer_redef | Jeremy Kemper | 2012-04-29 | 1 | -1/+1 |
|\ \ | | | | | | | Fix Observer by acting on singleton class. Fixes #3505. | ||||
| * | | Fix Observer by acting on singleton class [#3505] | Marc-Andre Lafortune | 2012-04-29 | 1 | -1/+1 |
| |/ | | | | | | | Also [issue #1034] [pull #6068] | ||||
* | | Generate appropriate error more judiciously | Marc-Andre Lafortune | 2012-04-29 | 1 | -2/+3 |
| | | |||||
* | | Fix error message: | Marc-Andre Lafortune | 2012-04-28 | 1 | -3/+3 |
|/ | | | | | - can pass the class, not the instance - "instance method" is confusing, use "method :instance" instead | ||||
* | Refactor Observer.observed_class | Oscar Del Ben | 2012-04-25 | 1 | -5/+2 |
| | |||||
* | Merge pull request #5841 from oscardelben/rename_count_observers | José Valim | 2012-04-24 | 1 | -1/+8 |
|\ | | | | | Rename Observing#count_observers to Observing#observers_count | ||||
| * | Rename Observing#count_observers to Observing#observers_count | Oscar Del Ben | 2012-04-14 | 1 | -1/+8 |
| | | |||||
* | | Improve observers documentation | Oscar Del Ben | 2012-04-18 | 1 | -0/+2 |
| | | |||||
* | | Rename notify_observers argument *arg to *args to make it more clear | Oscar Del Ben | 2012-04-14 | 1 | -2/+2 |
|/ | | | | that the method accepts multiple arguments | ||||
* | quote fix ` to ' in the ArgumentError message | Manoj | 2012-01-24 | 1 | -1/+1 |
| | | | | message quote fix | ||||
* | Remove Array.wrap call in ActiveModel | Rafael Mendonça França | 2012-01-06 | 1 | -2/+1 |
| | |||||
* | replaced remove and define method calls to :redefine | Anand | 2011-11-07 | 1 | -2/+1 |
| | |||||
* | Allow ActiveRecord observers to be disabled. | Myron Marston | 2011-08-12 | 1 | -2/+2 |
| | | | We have to use Observer#update rather than Observer#send since the enabled state is checked in #update before forwarding the method call on. | ||||
* | 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 |
| |