DEV: move send => public_send in lib folder

This handles most of the cases in `lib` where we were using send instead
of public_send
This commit is contained in:
Sam Saffron
2019-05-07 12:22:37 +10:00
parent 451f7842ff
commit e2bcf55077
13 changed files with 19 additions and 18 deletions

View File

@ -2,7 +2,7 @@ class Auth::AuthProvider
include ActiveModel::Serialization
def initialize(params = {})
params.each { |key, value| send "#{key}=", value }
params.each { |key, value| public_send "#{key}=", value }
end
def self.auth_attributes