<?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>AWDwR 3rd Edition によると Rails 1.2 から ActiveRecord::Base#find の :conditions に Hash を渡せるようになったようで、その際にログを眺めてたら実行される SQL の WHERE 句が IN () を使っていた。これをどこでやってんのか気になったのでソースを追ってみた。 Rails 2.3.9 で確認。activerecord/base.rb のメソッド呼び出しを追うと以下のようになってて、 find -&gt; find_every -&gt; find_by_sql -&gt; construct_finder_sql -&gt; add_co…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F20100917%2F1284658856&quot; title=&quot; ActiveRecord::Base#find で find(:all, :conditions =&amp;gt; { :key =&amp;gt; [1,2,3] }) とすると SQL の WHERE 句が `key` IN (1,2,3) になるしくみ - @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>https://images-fe.ssl-images-amazon.com/images/I/51fSL0ybmNL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-09-17 02:40:56</published>
  <title> ActiveRecord::Base#find で find(:all, :conditions =&gt; { :key =&gt; [1,2,3] }) とすると SQL の WHERE 句が `key` IN (1,2,3) になるしくみ</title>
  <type>rich</type>
  <url>https://blog.kyanny.me/entry/20100917/1284658856</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
