aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorPaco Guzman <fjguzman@aspgems.com>2011-03-06 22:24:22 +0100
committerPaco Guzman <fjguzman@aspgems.com>2011-03-06 22:24:22 +0100
commit7e9d45cc7f76497873720bf4797ddfba126c8cd8 (patch)
tree272455acf0ec12d2dd07b2d33cd8370d82fd019f /activemodel
parent3a621e7be4d5f592e04e8ee03435936f9e5f1c36 (diff)
downloadrails-7e9d45cc7f76497873720bf4797ddfba126c8cd8.tar.gz
rails-7e9d45cc7f76497873720bf4797ddfba126c8cd8.tar.bz2
rails-7e9d45cc7f76497873720bf4797ddfba126c8cd8.zip
remove unused assigned variable
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/observing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/observing.rb b/activemodel/lib/active_model/observing.rb
index af036b560e..ef36f80bec 100644
--- a/activemodel/lib/active_model/observing.rb
+++ b/activemodel/lib/active_model/observing.rb
@@ -72,7 +72,7 @@ module ActiveModel
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