Prevent deprecation warning in rails console