diff app/models/tweet.rb @ 138:7907fe886675

Better use symbol?
author nanaya <me@nanaya.pro>
date Wed, 13 Dec 2017 03:46:32 +0900
parents 00dc9346dfaa
children 88d7a7714d4e
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