aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2012-04-28 23:20:42 -0400
committerMarc-Andre Lafortune <github@marc-andre.ca>2012-04-28 23:20:42 -0400
commit85c056cc1f82ebbf795cdd70b9068ab50513e5d5 (patch)
tree1180771b1cffdfdd4a0e20d44b792cf3d2fa8770 /activemodel/lib/active_model
parentad2c5ea2786817592014fae09934398173c1a7f9 (diff)
downloadrails-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
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/observing.rb6
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