Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Oct 30, 2012
  1. @gazay
Commits on Oct 29, 2012
  1. @nikitug

    Provide a call stack for deprecation warnings where needed.

    nikitug authored
    It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
Commits on Oct 21, 2012
  1. minor edits in AM documentation [ci skip]

    Francesco Rodriguez authored
Commits on Aug 4, 2012
  1. @vijaydev

    Merge branch 'master' of github.com:lifo/docrails

    vijaydev authored
    Conflicts:
    	activemodel/lib/active_model/secure_password.rb
    	activerecord/lib/active_record/associations/collection_proxy.rb
Commits on Aug 3, 2012
  1. @jonleighton

    Remove ActiveRecord::Base.to_a

    jonleighton authored
    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.
Commits on Aug 2, 2012
  1. @fxn
Commits on Jul 31, 2012
  1. update ActiveModel::Observer documentation [ci skip]

    Francesco Rodriguez authored
  2. add :nodoc: to ActiveModel::Observing#inherited [ci skip]

    Francesco Rodriguez authored
  3. update ActiveModel::Observing documentation [ci skip]

    Francesco Rodriguez authored
Commits on Jul 27, 2012
  1. @jonleighton

    ActiveRecord::Base.all returns a Relation.

    jonleighton authored
    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.
Commits on Jul 3, 2012
  1. @acapilleri
Commits on May 1, 2012
  1. @marcandre
Commits on Apr 30, 2012
  1. @tenderlove

    Merge pull request #6063 from marcandre/observer_extra_args

    tenderlove authored
    Allow extra arguments for Observers
  2. @marcandre
  3. @jeremy

    Merge pull request #6071 from marcandre/observer_redef

    jeremy authored
    Fix Observer by acting on singleton class. Fixes #3505.
  4. @marcandre

    Fix Observer by acting on singleton class [#3505]

    marcandre authored
    Also [issue #1034] [pull #6068]
Commits on Apr 29, 2012
  1. @marcandre
  2. @marcandre

    Fix error message:

    marcandre authored
    - can pass the class, not the instance
    - "instance method" is confusing, use "method :instance" instead
Commits on Apr 25, 2012
  1. @oscardelben
  2. @josevalim

    Merge pull request #5841 from oscardelben/rename_count_observers

    josevalim authored
    Rename Observing#count_observers to Observing#observers_count
Commits on Apr 18, 2012
  1. @oscardelben
Commits on Apr 14, 2012
  1. @oscardelben

    Rename notify_observers argument *arg to *args to make it more clear

    oscardelben authored
    that the method accepts multiple arguments
  2. @oscardelben
Commits on Jan 24, 2012
  1. @hindenbug

    quote fix ` to ' in the ArgumentError message

    hindenbug authored
    message quote fix
Commits on Jan 6, 2012
  1. @rafaelfranca
Commits on Nov 7, 2011
  1. @luckydev
Commits on Aug 13, 2011
  1. @myronmarston

    Allow ActiveRecord observers to be disabled.

    myronmarston authored
    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 authored
    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 authored
    …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 authored
    …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 authored
    …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.
Something went wrong with that request. Please try again.