title: RoR Controller ensure_user_profile implementation
body: <p>I have a RoR app, in which a user can have one or more user profiles.</p>
  
  <p>I need to make a call to a method in a similar way to what it is like <code>before_action</code>, something similar to this;</p>
  
  <pre class="lang-rb prettyprint-override"><code>class PostsController &lt; ApplicationController
  
    # I don't know how to implement this
    ensure_user_profile [ :god, :admin, :manager, :supervisor ], only: [ :create ]
  
  end
  </code></pre>
  
  <p>How to implement a <code>ensure_user_profile</code> in <code>ApplicationController</code> <em>class</em> with @current_user <em>instance</em> variable?</p>