diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-04-28 23:20:42 -0400 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-04-28 23:20:42 -0400 |
commit | 85c056cc1f82ebbf795cdd70b9068ab50513e5d5 (patch) | |
tree | 1180771b1cffdfdd4a0e20d44b792cf3d2fa8770 | |
parent | ad2c5ea2786817592014fae09934398173c1a7f9 (diff) | |
download | rails-85c056cc1f82ebbf795cdd70b9068ab50513e5d5.tar.gz rails-85c056cc1f82ebbf795cdd70b9068ab50513e5d5.tar.bz2 rails-85c056cc1f82ebbf795cdd70b9068ab50513e5d5.zip |
Fix error message:
- can pass the class, not the instance
- "instance method" is confusing, use "method :instance" instead
-rw-r--r-- | activemodel/lib/active_model/observing.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |