mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-07 20:40:26 +08:00
change send to public_send
This commit is contained in:
parent
4635a3320d
commit
239a44c26b
2 changed files with 2 additions and 2 deletions
|
@ -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('_')
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue