<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a666666</author_name>
  <author_url>https://blog.hatena.ne.jp/a666666/</author_url>
  <blog_title>@kyanny's blog</blog_title>
  <blog_url>https://blog.kyanny.me/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>STI and uninitialized constant error | Blogger catこれとまったく同じ状況になった。 STI (Single Table Inheritance) を使って継承した子のモデルのクラス名（定数）を参照すると NameError: uninitialized constant が発生する。先に親のモデルのクラス名を一回参照したあとでは発生しない。これは Rails のモジュールロードの仕組みに起因していて、 class Script &lt; ActiveRecord::Base end class ScriptTask &lt; Script end clas…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F20110905%2F1315239766&quot; title=&quot;STI で継承したモデルのクラス名を参照したら uninitialized constant エラー - @kyanny&amp;#39;s blog&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>2011-09-05 01:22:46</published>
  <title>STI で継承したモデルのクラス名を参照したら uninitialized constant エラー</title>
  <type>rich</type>
  <url>https://blog.kyanny.me/entry/20110905/1315239766</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
