<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shiro-16</author_name>
  <author_url>https://blog.hatena.ne.jp/shiro-16/</author_url>
  <blog_title>まっしろけっけ</blog_title>
  <blog_url>https://shiro-16.hatenablog.com/</blog_url>
  <categories>
    <anon>rails</anon>
    <anon>ruby</anon>
    <anon>web</anon>
    <anon>プログラミング</anon>
    <anon>開発</anon>
  </categories>
  <description>ActiveRecordで更新後に更新前の値を取得する - まっしろけっけ ActiveRecordで更新後に更新前の値を取得する - まっしろけっけ以前上記のブログで紹介した内容なのですが、 カラムのデータが更新される前の値が知りたいのではなく、 カラムが更新されたかをどうかのみを知りたい場合にもっと便利なmethodがあったよ。 class User &lt; ActiveRecord::Base def change_name # 何かしらの処理 end end 上記のような前回と似たようなmodelを使用して説明します。 下記のコードのような処理が行われnameが変更された場合のみ chan…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshiro-16.hatenablog.com%2Fentry%2F2014%2F11%2F19%2F193000&quot; title=&quot;ActiveRecordでデータを更新後に任意のカラムのデータが更新されたかを知る方法 - まっしろけっけ&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>2014-11-19 19:30:00</published>
  <title>ActiveRecordでデータを更新後に任意のカラムのデータが更新されたかを知る方法</title>
  <type>rich</type>
  <url>https://shiro-16.hatenablog.com/entry/2014/11/19/193000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
