<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>woshidan</author_name>
  <author_url>https://blog.hatena.ne.jp/woshidan/</author_url>
  <blog_title>woshidan's blog</blog_title>
  <blog_url>https://woshidan.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
    <anon>Ruby</anon>
    <anon>学習メモ</anon>
  </categories>
  <description>なんかいまいちだけど、置いとこう。。 まとめ has_manyメソッドを書くと、has_manyメソッドに与えたパラメータを元に、 has_manyのアソシエーションのメソッドのマクロ名などが登録されたクラスのインスタンスをFactoryPatternっぽい感じで作り、 そのインスタンスをActiveRecordの持っている動的に追加したメソッド一覧みたいな_reflectionsというハッシュに追加している。 has_manyのアソシエーションのメソッドのマクロなどが登録されたメソッドが作成されたあと、 それを使った(追いきれてないからそう言う気がするだけ)getterやwriterは その…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwoshidan.hatenablog.com%2Fentry%2F2015%2F04%2F21%2F072800&quot; title=&quot;ActiveRecord::Baseのサブクラスでhas_manyと書いたとき - woshidan&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>2015-04-21 07:28:00</published>
  <title>ActiveRecord::Baseのサブクラスでhas_manyと書いたとき</title>
  <type>rich</type>
  <url>https://woshidan.hatenablog.com/entry/2015/04/21/072800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
