<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>willnet</author_name>
  <author_url>https://blog.hatena.ne.jp/willnet/</author_url>
  <blog_title>おもしろwebサービス開発日記チラシの裏</blog_title>
  <blog_url>https://memo.willnet.in/</blog_url>
  <categories>
  </categories>
  <description>画像アップロード系のプラグインで定番の carrierwave について。wiki にも書かれているように、5つのコールバックがある。保存されるときに使われるのは :store で、多分これが一番多用されると思う。 このコールバックには問題が一つあって、それはサムネイルの種類(carrierwaveではversionと呼ばれているぽい)が、複数定義されていると、一回保存されるたびにその種類の数 :store が呼ばれてしまうという点。現時点で「画像保存後に一回だけ何らかの処理がしたい」場合のサポートは無いみたい。 そのような場合は仕方ないので独自に after_commit など使って定義する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.willnet.in%2Fentry%2F2013%2F01%2F09%2F225314&quot; title=&quot;carrierwave のフックの問題 - おもしろwebサービス開発日記チラシの裏&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-01-09 22:53:14</published>
  <title>carrierwave のフックの問題</title>
  <type>rich</type>
  <url>https://memo.willnet.in/entry/2013/01/09/225314</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
