it-lawyer.hatenablog.com 昨日の続き。 他にも使い回せるようにするとこんな感じですかね。 ./lib/hoge.rb require './config/active_record' require './config/slack' def post_feed_to_slack(table, title_link, title, slack_username) hash = { uri: title_link, title: title } unless table.where(uri: hash[:uri]).reload.exists? Slack.chat_pos…