v-kolesnikov/emilito

View on GitHub
app/concepts/session/operation/sign_in.rb

Summary

Maintainability
A
0 mins
Test Coverage

Showing 2 of 2 total issues

Use %i or %I for an array of symbols. (https://github.com/bbatsov/ruby-style-guide#percent-i)
Open

rule(password: [:email, :password]) do |email, password|

Use safe navigation (&.) instead of checking if an object exists before calling the method.
Open

user && user.authenticate(password)
Category
Status