Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…oguzman/rails into pacoguzman-active_model_unused_variable
  • Loading branch information...
commit 2159e9eb64fd47635c84097e93f8708018e87751 2 parents c528297 + 7e9d45c
@fxn fxn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activemodel/lib/active_model/observing.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.