drapergeek/findit

View on GitHub
app/controllers/allowed_users_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AllowedUsersController < ApplicationController
  def create
    @user = User.find(params[:id])
    @user.can_login = true
    @user.save
    redirect_to users_path, notice: "User is now allowed to sign in"
  end
end