Permalink
Browse files

Merge branch 'active_model_unused_variable' of https://github.com/pac…

…oguzman/rails into pacoguzman-active_model_unused_variable
  • Loading branch information...
fxn committed Mar 6, 2011
2 parents c528297 + 7e9d45c commit 2159e9eb64fd47635c84097e93f8708018e87751
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/observing.rb
@@ -72,7 +72,7 @@ def count_observers
def instantiate_observer(observer) #:nodoc:
# string/symbol
if observer.respond_to?(:to_sym)
- observer = observer.to_s.camelize.constantize.instance
+ observer.to_s.camelize.constantize.instance
elsif observer.respond_to?(:instance)
observer.instance
else

0 comments on commit 2159e9e

Please sign in to comment.