changeset 138:7907fe886675

Better use symbol?
author nanaya <me@nanaya.pro>
date Wed, 13 Dec 2017 03:46:32 +0900
parents 00dc9346dfaa
children ee5876dd9b45
files app/models/tweet.rb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/models/tweet.rb	Wed Dec 13 03:44:43 2017 +0900
+++ b/app/models/tweet.rb	Wed Dec 13 03:46:32 2017 +0900
@@ -57,7 +57,7 @@
     @clients[client_config_id] ||=
       Twitter::REST::Client.new do |config|
         $cfg[:twitter][client_config_id].each do |cfg_key, cfg_value|
-          config.public_send("#{cfg_key}=", cfg_value)
+          config.public_send(:"#{cfg_key}=", cfg_value)
         end
       end
   end