<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>babiy3104</author_name>
  <author_url>https://blog.hatena.ne.jp/babiy3104/</author_url>
  <blog_title>そういうことだったんですね</blog_title>
  <blog_url>https://babiy3104.hateblo.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>Ruby</anon>
  </categories>
  <description>基本 オブジェクトの生成・更新・削除のタイミングで呼び出されるメソッド トリガとなるイベント(validation,saveなど)の前(before)と後(after)に登録可能 コールバックはメソッドチェーンに追加される。 before_xxx で false を返すか例外を発生させると、それ以降の処理を停止させることができる (トランザクション中の場合は ROLLBACK を発生させる) 使い方 before_xxxx/after_xxxx メソッドでコールバックとするメソッド名を登録 メソッドを定義する 例 class Blog &lt; ActiveRecord::Base after_sa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbabiy3104.hateblo.jp%2Fentry%2F2014%2F03%2F02%2F155112&quot; title=&quot;rails - 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-03-02 15:51:12</published>
  <title>rails - ActiveRecord の コールバック</title>
  <type>rich</type>
  <url>https://babiy3104.hateblo.jp/entry/2014/03/02/155112</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
