public Method

Observer.update(observed_method, object)

Send observed_method(object) if the method exists.

Source Code

# File active_record/observer.rb, line 170
def update(observed_method, object) #:nodoc:
  send(observed_method, object) if respond_to?(observed_method)
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.