<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mat5ukawa</author_name>
  <author_url>https://blog.hatena.ne.jp/mat5ukawa/</author_url>
  <blog_title>現場ログ</blog_title>
  <blog_url>https://mat5ukawa.hateblo.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>よくある事例 validates だけで 10 行ぐらいクラスを食いつぶす app/models/book.rb class Book &lt; ActiveRecord::Base validates_presence_of :name, :password ... validates_length_of :title, max ... validates_foo validates_bar validates_qux . . . validates_me end 解決策 (Rails 4 以上?) concern の module に集約する app/models/concern/validat…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmat5ukawa.hateblo.jp%2Fentry%2F2014%2F08%2F07%2F022538&quot; title=&quot;Model に散らばる validates メソッドを concern で集約する - 現場ログ&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>2014-08-07 02:25:38</published>
  <title>Model に散らばる validates メソッドを concern で集約する</title>
  <type>rich</type>
  <url>https://mat5ukawa.hateblo.jp/entry/2014/08/07/022538</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
