static public Method

Observer.new

Start observing the declared classes and their subclasses.

Source Code

# File active_record/observer.rb, line 165
def initialize
  Set.new(observed_classes + observed_subclasses).each { |klass| add_observer! klass }
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.