<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baw-keepon69</author_name>
  <author_url>https://blog.hatena.ne.jp/baw-keepon69/</author_url>
  <blog_title>シュッと開発日記</blog_title>
  <blog_url>https://shuttodev.hatenablog.com/</blog_url>
  <categories>
    <anon>Active Storage</anon>
    <anon>rspec</anon>
  </categories>
  <description>今日はActive Storageにバリデーションを設定したので、 その内容をまとめておきます。 背景 Active Storageにはデフォルトのバリデーションというのがないようです。 （そのせいで、みんなCarrierWaveで実装しているのかな？） Rails5.2から入る新機能ActiveStorageを使うべきか? うーん、なんか移行した方が良さそうなのかな。。。 とはいえ、せっかくS3、clodfrontの設定までしたばかりなので、 ひとまずは簡単なバリデーションを実装しておこうと思います。 実装 今回はこちらの記事を参考に（ほぼまるパクリですみません）で実装しました。 Activ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuttodev.hatenablog.com%2Fentry%2F2019%2F09%2F04%2F015756&quot; title=&quot;Active Storageの簡単なバリデーションの実装とテスト - シュッと開発日記&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>2019-09-04 01:57:56</published>
  <title>Active Storageの簡単なバリデーションの実装とテスト</title>
  <type>rich</type>
  <url>https://shuttodev.hatenablog.com/entry/2019/09/04/015756</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
