<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akishin999</author_name>
  <author_url>https://blog.hatena.ne.jp/akishin999/</author_url>
  <blog_title>akishin999の日記</blog_title>
  <blog_url>https://akishin.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Rails</anon>
  </categories>
  <description>Rails で書き込みをしたくない参照専用の DB を扱った際に、間違えて更新してしまわないために変更した箇所を備忘録代わりにメモ。 バージョンは 3.2.13 です。 ActiveRecord 使っているのは Rails 3 なんですが、なんとなく Rails 4 の concerns っぽくしてみました。 まずは Model の concerns ディレクトリを作成。 $ mkdir -p app/models/concerns 作成したディレクトリを config/application.rb の autoload_paths に追加して自動ロードされるように設定します。 config.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakishin.hatenablog.jp%2Fentry%2F20130718%2F1374100143&quot; title=&quot; Rails で ReadOnly なデータベースを扱う場合のいろいろ - akishin999の日記&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>2013-07-18 07:29:03</published>
  <title> Rails で ReadOnly なデータベースを扱う場合のいろいろ</title>
  <type>rich</type>
  <url>https://akishin.hatenablog.jp/entry/20130718/1374100143</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
