Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix error message:

- can pass the class, not the instance
- "instance method" is confusing, use "method :instance" instead
  • Loading branch information...
commit 85c056cc1f82ebbf795cdd70b9068ab50513e5d5 1 parent ad2c5ea
Marc-André Lafortune marcandre authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 activemodel/lib/active_model/observing.rb
6 activemodel/lib/active_model/observing.rb
View
@@ -95,9 +95,9 @@ def instantiate_observer(observer) #:nodoc:
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
Please sign in to comment.
Something went wrong with that request. Please try again.