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:
parent
3a621e7be4
commit
7e9d45cc7f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue