Skip to content

Commit

Permalink
Use public_send instead of send
Browse files Browse the repository at this point in the history
  • Loading branch information
guilleiguaran committed Jul 30, 2015
1 parent fc9a938 commit 63a9e91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/active_model/one_time_password.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,19 @@ def provisioning_uri(account = nil, options = {})
end

def otp_column
self.send(self.class.otp_column_name)
self.public_send(self.class.otp_column_name)
end

def otp_column=(attr)
self.send("#{self.class.otp_column_name}=", attr)
self.public_send("#{self.class.otp_column_name}=", attr)
end

def otp_counter
self.send(self.class.otp_counter_column_name)
self.public_send(self.class.otp_counter_column_name)
end

def otp_counter=(attr)
self.send("#{self.class.otp_counter_column_name}=", attr)
self.public_send("#{self.class.otp_counter_column_name}=", attr)
end
end
end
Expand Down

0 comments on commit 63a9e91

Please sign in to comment.