This project is archived and is in readonly mode.

#3728 ✓resolved
Gavin Stark

Incorrect example for ActiveModel::Observer#observed_classes

Reported by Gavin Stark | January 17th, 2010 @ 09:19 PM

The example for ActiveModel::Observer#observed classes is:

   #   class AuditObserver < ActiveModel::Observer
   #     def self.observed_classes
   #       [AccountObserver, BalanceObserver]
   #     end
   #   end

but shouldn't it be:

   #   class AuditObserver < ActiveModel::Observer
   #     def self.observed_classes
   #       [Account, Balance]
   #     end
   #   end

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages