title: How to access current module in Elixir
body: <p>Let's say I have a module <code>MyApp.User</code> and it has the following method:</p>
  
  <pre><code>def update_some_counter(user) do
    from(u in MyApp.User , where: u.id == ^user.id)
    |&gt; Repo.update_all(inc: [some_counter: 1])
  end
  </code></pre>
  
  <p>Is there a way to change <code>MyApp.User</code> in the code above to some method that retrieves current module? </p>