public Method

Observer.observed_class_inherited(subclass)

Special method sent by the observed class when it is inherited. Passes the new subclass.

Source Code

# File active_record/observer.rb, line 176
def observed_class_inherited(subclass) #:nodoc:
  self.class.observe(observed_classes + [subclass])
  add_observer!(subclass)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.