1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

remove unused assigned variable

This commit is contained in:
Paco Guzman 2011-03-06 22:24:22 +01:00
parent 3a621e7be4
commit 7e9d45cc7f

View file

@ -72,7 +72,7 @@ module ActiveModel
def instantiate_observer(observer) #:nodoc: def instantiate_observer(observer) #:nodoc:
# string/symbol # string/symbol
if observer.respond_to?(:to_sym) if observer.respond_to?(:to_sym)
observer = observer.to_s.camelize.constantize.instance observer.to_s.camelize.constantize.instance
elsif observer.respond_to?(:instance) elsif observer.respond_to?(:instance)
observer.instance observer.instance
else else