app/controllers/admin/masquerade_controller.rb
# POST to masquerade as another user
POST to masquerade as another user
POST to masquerade as another user
def become
      params.require(:masquerading_educator_id)
      masquerade.become_educator_id!(params[:masquerading_educator_id].to_i)
      redirect_to root_url
    end
def become params . require ( :masquerading_educator_id ) masquerade . become_educator_id! ( params [ :masquerading_educator_id ] . to_i ) redirect_to root_url end
POST to masquerade as another user
POST to masquerade as another user