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:
parent
ad2c5ea278
commit
85c056cc1f
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue