<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kent_12832</author_name>
  <author_url>https://blog.hatena.ne.jp/kent_12832/</author_url>
  <blog_title>kent備忘ログ</blog_title>
  <blog_url>https://kentam32.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>RailsのtwitterのようなSNSアプリ制作を月の頭に終えた後、自社開発企業様でエンジニアとして働かせていただくことになりました！ 3月上旬 先月に続き新たに別のユーザが自分のツイートに対しコメント・リツイート・いいねをした際に通知が行われる通知機能を実装しました。 この機能の実装にはモデルのポリモーフィックという性質がドンピシャにハマりました。ツイートの子モデルであるコメント・リツイート・いいねに対し他ユーザのアクションがあった際、3つのモデル別にアクションしたユーザとログインユーザを紐付けたレコードを作成します。 notification.rb class Notification …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkentam32.hatenablog.com%2Fentry%2F2024%2F04%2F01%2F094140&quot; title=&quot;3月の振り返り(学習振り返りから、エンジニアとして働くことになった話) - kent備忘ログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-04-01 09:41:40</published>
  <title>3月の振り返り(学習振り返りから、エンジニアとして働くことになった話)</title>
  <type>rich</type>
  <url>https://kentam32.hatenablog.com/entry/2024/04/01/094140</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
