1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix error message:

- can pass the class, not the instance
- "instance method" is confusing, use "method :instance" instead
This commit is contained in:
Marc-Andre Lafortune 2012-04-28 23:20:42 -04:00
parent ad2c5ea278
commit 85c056cc1f

View file

@ -95,9 +95,9 @@ module ActiveModel
observer.instance
else
raise ArgumentError,
"#{observer} must be a lowercase, underscored class name (or an " +
"instance of the class itself) responding to the instance " +
"method. Example: Person.observers = :big_brother # calls " +
"#{observer} must be a lowercase, underscored class name (or " +
"the class itself) responding to the method :instance. " +
"Example: Person.observers = :big_brother # calls " +
"BigBrother.instance"
end
end