diff options
author | Xavier Noria <fxn@hashref.com> | 2011-03-07 00:44:57 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-03-07 00:44:57 +0100 |
commit | 2159e9eb64fd47635c84097e93f8708018e87751 (patch) | |
tree | 933ff7162dbd1aaf928a3c90fbf9f77d4b1129f0 /activemodel | |
parent | c528297d17236e57fa4076272547367870158034 (diff) | |
parent | 7e9d45cc7f76497873720bf4797ddfba126c8cd8 (diff) | |
download | rails-2159e9eb64fd47635c84097e93f8708018e87751.tar.gz rails-2159e9eb64fd47635c84097e93f8708018e87751.tar.bz2 rails-2159e9eb64fd47635c84097e93f8708018e87751.zip |
Merge branch 'active_model_unused_variable' of https://github.com/pacoguzman/rails into pacoguzman-active_model_unused_variable
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/observing.rb | 2 |
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 |