提交 8d3f4413 编写于 作者: A Aaron Bedra

Don't warn on #from when not in an AR object. Fixes #423

上级 105be857
......@@ -134,6 +134,7 @@ class Brakeman::CheckSQL < Brakeman::BaseCheck
#
def process_result result
return if duplicate?(result) or result[:call].original_line
return if result[:target].nil? && !active_record_models.include?(result[:location][:class])
call = result[:call]
method = call.method
......
class Notifier < ActionMailer::Base
def nsfree_deactivation_heroku(account, allowed, used)
# ...
subject "#{Zerigo.service_provider[:company_name]} add-on at Heroku: #{Zerigo.sites[:ns][:app_name]} service deactivated"
from Zerigo.service_provider[:company_support_email]
recipients rcpts
bcc Zerigo.service_provider[:company_bcc_email]
sent_on Time.now
body :allowed => allowed, :used => used, :account => account
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册