Permalink
Browse files

remove unused assigned variable

  • Loading branch information...
1 parent 3a621e7 commit 7e9d45cc7f76497873720bf4797ddfba126c8cd8 Paco Guzman committed Mar 6, 2011
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 7e9d45c

Please sign in to comment.