{"width":"100%","author_url":"https://blog.hatena.ne.jp/biibiebi/","provider_name":"Hatena Blog","categories":[],"description":"\u7a7a\u3044\u305f\u6642\u9593\u306b Rails \u30b3\u30fc\u30c9\u30ea\u30fc\u30c7\u30a3\u30f3\u30b0\u3002\u4eca\u65e5\u306f ActiveRecord::Reflection \u3092\u30b6\u30fc\u30c3\u3068\u8aad\u3093\u3060\u3002 ActiveRecord::Reflection \u306f model \u306e\u95a2\u9023\u4ed8\u3051\u306b\u95a2\u3059\u308b\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3059\u308b\u30af\u30e9\u30b9\u3068\u3044\u3046\u611f\u3058\u3060\u3063\u305f\u3002\u4f8b\u3048\u3070\u3001belongs_to \u306e\u5b9f\u88c5\u3067\u306f def belongs_to(name, scope = nil, **options) reflection = Builder::BelongsTo.build(self, name, scope, options) Reflection.add_reflection self, name, reflec\u2026","version":"1.0","blog_url":"https://blog.ebihara99999.com/","title":"ActiveRecord::Reflection \u3092\u8aad\u3093\u3060","image_url":null,"published":"2024-11-26 00:05:43","height":"190","type":"rich","url":"https://blog.ebihara99999.com/entry/2024/11/26/000543","blog_title":"\u4f55\u3067\u3082\u5c4b\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0","author_name":"biibiebi","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ebihara99999.com%2Fentry%2F2024%2F11%2F26%2F000543\" title=\"ActiveRecord::Reflection \u3092\u8aad\u3093\u3060 - \u4f55\u3067\u3082\u5c4b\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog"}