Permalink
Browse files

Fix error message:

- can pass the class, not the instance
- "instance method" is confusing, use "method :instance" instead
  • Loading branch information...
1 parent ad2c5ea commit 85c056cc1f82ebbf795cdd70b9068ab50513e5d5 @marcandre marcandre committed Apr 29, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 activemodel/lib/active_model/observing.rb
@@ -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

0 comments on commit 85c056c

Please sign in to comment.