Do not check only for the Rails constant
This constant may be define for auxiliar gems like rails-html-sanitizer and these methods call will fail.
Showing
想要评论请 注册 或 登录
This constant may be define for auxiliar gems like rails-html-sanitizer and these methods call will fail.