<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakaearth</author_name>
  <author_url>https://blog.hatena.ne.jp/nakaearth/</author_url>
  <blog_title>nakaearthの日記</blog_title>
  <blog_url>https://nakaearth.hatenadiary.org/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>この前のブログでモデルのビジネスロジック層を分ける記事書きましたが、あれから色々見て改めて考えた。 で結論service層を設けてユーザ登録部分を移した。 1 class UserRegister 2 3 def find_user_by_provider_and_uid 4 @auth_provider = AuthProvider.where(provider: @auth[:provider]).where(uid: @auth[:uid]).first 5 @user = User.where(user_id: @auth_provider.user_id) if @auth_prov…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakaearth.hatenadiary.org%2Fentry%2F20140201%2F1391259255&quot; title=&quot;Railsのモデル部分のロジックを今度はservice層に移した - nakaearthの日記&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-02-01 21:54:15</published>
  <title>Railsのモデル部分のロジックを今度はservice層に移した</title>
  <type>rich</type>
  <url>https://nakaearth.hatenadiary.org/entry/20140201/1391259255</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
