<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rudeboyjet</author_name>
  <author_url>https://blog.hatena.ne.jp/rudeboyjet/</author_url>
  <blog_title>よしだメモ</blog_title>
  <blog_url>https://rudeboyjet.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>ActiveRecordのsaveメソッド時のvalidationがどういう順番で働いているのかを調べた。 まず普通にActiveRecord::Base内を「def save」で検索 #ファイル /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb 1971行目-1973行目 def save create_or_update end 内部的にcreate_or_updateを使っているらしい。ということで「def create_or_update」を検索 #ファイル /usr/lib/ruby/ge…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frudeboyjet.hatenadiary.org%2Fentry%2F20080101%2Fp1&quot; title=&quot; [rails][code_reading] ActiveRecord::Base#saveメソッドのvalidationのかかる順番 - よしだメモ&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>2008-01-01 00:00:00</published>
  <title> [rails][code_reading] ActiveRecord::Base#saveメソッドのvalidationのかかる順番</title>
  <type>rich</type>
  <url>https://rudeboyjet.hatenadiary.org/entry/20080101/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
