<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shutooike</author_name>
  <author_url>https://blog.hatena.ne.jp/shutooike/</author_url>
  <blog_title>インゲージ開発者ブログ</blog_title>
  <blog_url>https://blog.ingage.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>バックエンド</anon>
  </categories>
  <description>はじめまして！ 8月にインゲージに入社したエンジニア1年生の @shutooike です！（保険） 突然ですが、弊社サービスの設定系のテーブルにはその設定を誰が作成・更新したものかを記録するために created_by, updated_by というログインユーザーのIDを入れるカラムがあります。 その created_by, updated_by にログインユーザーIDをセットする処理は、単に save(updated_by: current_user.id) としているところもあれば、before_save などのコールバックでセットしているところもありモデルごとにバラバラでした。 そこら…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ingage.jp%2Fentry%2F2020%2F11%2F25%2F090000&quot; title=&quot;Rails で created_by と updated_by をいい感じにセットしたい - インゲージ開発者ブログ&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>2020-11-25 09:00:00</published>
  <title>Rails で created_by と updated_by をいい感じにセットしたい</title>
  <type>rich</type>
  <url>https://blog.ingage.jp/entry/2020/11/25/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
