Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Incorrect example for ActiveModel::Observer#observed_classes

#3728

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

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

State: resolved
Milestone: none
Assigned to: Pratik Pratik
Importance: Low

Activity

  1. Gavin Stark
    Gavin Stark

    The bugmash instructions (for the Jan 2010 bugmash) state I should say: I've attached a patch.

    January 17th, 2010 @ 10:11 PM

  2. José Valim
    José Valim
    • Assigned user set to Pratik

    Documentation patch.

    January 17th, 2010 @ 10:23 PM

  3. Pratik
    Pratik
    • State changed from new to resolved

    Please commit it to docrails - https://github.com/lifo/docrails

    January 17th, 2010 @ 10:23 PM

  4. Marshall Huss
    Marshall Huss

    I committed this patch to docrails

    January 18th, 2010 @ 05:24 AM