title: How to get the current user that is logged in via active admin?
body: <p>I would like to know how to get the current user that is logged in via the active admin GUI?</p>
  
  <p>Homepage: <a href="http://www.activeadmin.info/">http://www.activeadmin.info/</a></p>
  
  <p>Thanks in advance</p>
  
  <p><strong>MODEL</strong></p>
  
  <p><strong>admin_user.rb</strong></p>
  
  <pre><code>class AdminUser &lt; ActiveRecord::Base
    # Include default devise modules. Others available are:
    # :token_authenticatable, :confirmable,
    # :lockable, :timeoutable and :omniauthable
    devise :database_authenticatable, 
           :recoverable, :rememberable, :trackable, :validatable
  
    # Setup accessible (or protected) attributes for your model
    attr_accessible :email, :password, :password_confirmation, :remember_me, :id  , :admin_permission
    # attr_accessible :title, :body
    has_one :admin_permission
    validates_uniqueness_of :email
  
    def self.current_logged_user
      # ?
    end
  end
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>When I try to use the method 'current_user' in dashboard.rb or any active admin related file, apparently it is not implemented. </p>
  
  <p><strong>OUTPUT</strong></p>
  
  <pre><code>undefined local variable or method `current_user' for
  </code></pre>