Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Nov 7, 2011
  1. @luckydev
Commits on Aug 13, 2011
  1. @myronmarston

    Allow ActiveRecord observers to be disabled.

    myronmarston committed
    We have to use Observer#update rather than Observer#send since the enabled state is checked in #update before forwarding the method call on.
Commits on May 21, 2011
  1. @ganeshkumar
Commits on May 19, 2011
  1. @guilleiguaran
Commits on May 6, 2011
  1. @myronmarston
Commits on Apr 30, 2011
  1. @smartinez87
Commits on Apr 28, 2011
  1. @myronmarston

    Fix bug with AM::Observer disablement.

    myronmarston committed
    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 :).
  2. @myronmarston

    Fix dev env memory leaks by using AS::DescendantsTracker rather than …

    myronmarston committed
    …keeping 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.
  3. @myronmarston

    Revert "Revert "Handle enabling/disabling observers at different leve…

    myronmarston committed
    …ls of the class hierarchy.""
    This reverts commit 2a25c58.
    I'm going to add another commit that keeps the same behavior of fixes
    the problems of leaking memory in development.
  4. @josevalim

    Revert "Handle enabling/disabling observers at different levels of th…

    josevalim committed
    …e class hierarchy."
    This reverts commit ad62f19 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.
  5. @myronmarston @dhh

    Handle enabling/disabling observers at different levels of the class …

    myronmarston committed with dhh
    Last call wins.
  6. @myronmarston @dhh

    Allow observers to be enabled and disabled.

    myronmarston committed with dhh
    This is useful in situations like model unit tests and the occasional rake task to backfill old data.
  7. @myronmarston @dhh
Commits on Apr 22, 2011
  1. @joshk
Commits on Mar 6, 2011
  1. remove unused assigned variable

    Paco Guzman committed
Commits on Feb 21, 2011
  1. @fxn

    copy-edits 6d7a826

    fxn committed
  2. @nixterrimus
Commits on Feb 16, 2011
  1. @jimmycuadra

    add note about observer config for rails apps

    jimmycuadra committed
    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.
Commits on Jan 15, 2011
  1. @brainopia
Commits on Sep 1, 2010
  1. @subbarao @josevalim

    reader method eliminates defined? checks

    subbarao committed with josevalim
    Signed-off-by: José Valim <>
Commits on Aug 26, 2010
  1. @jaimeiniesta @fxn
Commits on Aug 14, 2010
  1. @spastorino

    Deletes trailing whitespaces (over text files only find * -type f -ex…

    spastorino committed
    …ec sed 's/[ \t]*$//' -i {} \;)
Commits on Jul 8, 2010
  1. @josevalim
  2. @lukaszx0 @josevalim

    Removing method before redefining it. It was causing warnings. [#5072

    lukaszx0 committed with josevalim
    Signed-off-by: José Valim <>
Commits on Jun 26, 2010
  1. @spastorino @josevalim

    Move constantize from conversions to inflections.

    spastorino committed with josevalim
    This removes ActiveModel dependency on TZInfo.
    [#4979 state:committed]
    Signed-off-by: José Valim <>
Commits on Jun 14, 2010
  1. @rizwanreza

    Revised and added headings.

    rizwanreza committed
Commits on Jun 7, 2010
  1. @spastorino

    Observing module is using constantize

    spastorino committed with Carl Lerche
Commits on Apr 16, 2010
  1. @jeremy

    Fix Active Model observer tests

    jeremy committed
  2. @mislav @jeremy

    ActiveModel::Observing: stop using Observable Ruby module, re-impleme…

    mislav committed with jeremy
    …nt `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 <>
Commits on Jan 18, 2010
  1. @mwhuss
Commits on Jan 17, 2010
  1. @mikel
Commits on Sep 2, 2009
  1. @josh
Commits on Jul 21, 2009
  1. @josh

    Improve AMo observing docs

    josh committed
  2. @josh
Commits on Jun 11, 2009
  1. @josh
Something went wrong with that request. Please try again.