From 85c056cc1f82ebbf795cdd70b9068ab50513e5d5 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Sat, 28 Apr 2012 23:20:42 -0400 Subject: Fix error message: - can pass the class, not the instance - "instance method" is confusing, use "method :instance" instead --- activemodel/lib/active_model/observing.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activemodel/lib/active_model') diff --git a/activemodel/lib/active_model/observing.rb b/activemodel/lib/active_model/observing.rb index 35b1a1f0c7..5aa27f00da 100644 --- a/activemodel/lib/active_model/observing.rb +++ b/activemodel/lib/active_model/observing.rb @@ -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 -- cgit v1.2.3