<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinkufencer</author_name>
  <author_url>https://blog.hatena.ne.jp/shinkufencer/</author_url>
  <blog_title>コード日進月歩</blog_title>
  <blog_url>https://shinkufencer.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Rails</anon>
  </categories>
  <description>「引数にActiveRecordを渡したいが、そこから操作されてほしくない」というようなときにどういうアプローチがあるかが気になったので、ざっくりまとめ。 検証した環境 $ bin/rails -v Rails 7.1.2 $ ruby -v ruby 3.2.1 (2023-02-08 revision 31819e82c8) [aarch64-linux] 例示に使うモデル 今回は Book と Author というモデルを例示に使う。定義は以下。 # == Schema Information # # Table name: authors # # id :bigint not null…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2025%2F09%2F20%2F000000&quot; title=&quot;RailsでのActiveRecordへのfreeze, readonly, strict_loading の違いをざっくり整理する - コード日進月歩&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>2025-09-20 00:00:00</published>
  <title>RailsでのActiveRecordへのfreeze, readonly, strict_loading の違いをざっくり整理する</title>
  <type>rich</type>
  <url>https://shinkufencer.hateblo.jp/entry/2025/09/20/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
