提交 2159e9eb 编写于 作者: X Xavier Noria

Merge branch 'active_model_unused_variable' of...

Merge branch 'active_model_unused_variable' of https://github.com/pacoguzman/rails into pacoguzman-active_model_unused_variable
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册