提交 f2c4bfbc 编写于 作者: J Justin Collins

CheckSQL: Test that calls to #to_i do not warn

上级 11588e80
......@@ -106,6 +106,10 @@ class Product < ActiveRecord::Base
Product.last("blah = '#{something(params[:blah])}'")
end
def test_params_to_i
#Should not warn
Product.last("blah = '#{params[:id].to_i}'")
end
def test_more_if_statements
if some_condition
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册