app/controllers/clearance/sessions_controller.rb in thoughtbot-clearance-0.6.0 vs app/controllers/clearance/sessions_controller.rb in thoughtbot-clearance-0.6.1
- old
+ new
@@ -7,10 +7,10 @@
def new
render :template => 'sessions/new'
end
def create
- @user = User.authenticate(params[:session][:email],
+ @user = ::User.authenticate(params[:session][:email],
params[:session][:password])
if @user.nil?
flash.now[:notice] = "Bad email or password."
render :template => 'sessions/new', :status => :unauthorized
else