This project is archived and is in readonly mode.
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
-
Gavin Stark January 17th, 2010 @ 10:11 PM
The bugmash instructions (for the Jan 2010 bugmash) state I should say: I've attached a patch.
-
Pratik January 17th, 2010 @ 10:23 PM
- State changed from new to resolved
Please commit it to docrails - https://github.com/lifo/docrails
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>