title: How to skip validations as admin during update_attributes?
body: <p>I want to skip validation when I am trying to edit user as admin.</p>
  
  <p><strong>Model</strong></p>
  
  <pre><code>class User
    ...
    attr_accessible :company_id, :first_name, :disabled, as: :admin
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>class Admin::UsersController
    ...
    def update
      @user = User.find(params[:id])
      @user.update_attributes(params[:user], as: :admin)
      redirect_to edit_admin_user_path(@user), :notice =&gt; "User Account Updated"
    end
  </code></pre>
  
  <p>So I tried to change <code>update</code> action to</p>
  
  <pre><code>def update
    @user = User.find(params[:id])
    @user.attributes = params[:user]
    @user.save(validate: false)
    redirect_to edit_admin_user_path(@user), :notice =&gt; "User Account Updated"
  end
  </code></pre>
  
  <p>But then I dont have access to set <code>:disabled</code> and <code>:company_id</code> attributes because i dont know where to set <code>as: :admin</code></p>