title: How do I view Rails audit records in my Rails console?
body: <p>I’m using Rails 4.2.10 and the audited gem, defined in my Gemfile like so …</p>
  <pre><code>gem &quot;audited-activerecord&quot;, &quot;~&gt; 4.0&quot;
  </code></pre>
  <p>I have it activated in my models like so</p>
  <pre><code>class MyObject &lt; ActiveRecord::Base
  …
    audited
  </code></pre>
  <p>In the Rails console, how do I view specific Audit objects?  I tried this in my console …</p>
  <pre><code>&gt; Audit.all
  NameError: uninitialized constant Audit
      from (irb):2
      from /usr/share/rvm/gems/ruby-2.4.5@cfs-web/gems/railties-4.2.10/lib/rails/commands/console.rb:110:in `start'
      from /usr/share/rvm/gems/ruby-2.4.5@cfs-web/gems/railties-4.2.10/lib/rails/commands/console.rb:9:in `start'
      from /usr/share/rvm/gems/ruby-2.4.5@cfs-web/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:68:in `console'
      from /usr/share/rvm/gems/ruby-2.4.5@cfs-web/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
      from /usr/share/rvm/gems/ruby-2.4.5@cfs-web/gems/railties-4.2.10/lib/rails/commands.rb:17:in `&lt;top (required)&gt;'
      from bin/rails:4:in `require'
      from bin/rails:4:in `&lt;main&gt;'
  </code></pre>
  <p>But get the above errors.</p>