taste-o-code/taste-o-code-web — comment on commit 803425479f1e7bdf0a806f63f7406c4ee14971cf
File: app/models/user.rb line 39
By KL-7:

Explicit `return` is not that common in ruby. Especially in the last line of method, because the result of the last evaluated expression is returned anyway. Though `return` is often used in the beginning of method to make early return. In that case it's better than wrapping whole method body into huge `if` or `unless` block.

def foo(params)
return if params.blank?

# rest of the method
end