change send to public_send

This commit is contained in:
zmagod 2017-03-24 16:25:50 +01:00
parent 4635a3320d
commit 239a44c26b
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ module ReportsHelper
# ReportExtends is located in config/initializers/extends/report_extends.rb
ReportElement.type_ofs.keys.each do |type|
next unless element.send("#{type}?")
next unless element.public_send("#{type}?")
local_sym = type.split('_').last.to_sym
local_sym = type
.split('_')

View file

@ -56,7 +56,7 @@ class ReportElement < ActiveRecord::Base
ReportExtends::SET_ELEMENT_REFERENCES_LIST.each do |el_ref|
check = el_ref.check(self)
next unless check
self.send("#{el_ref.element}=", ref_id)
public_send("#{el_ref.element}=", ref_id)
break
end
end