Refactor if condition with Rails scope
Quite often it’s easy to simplify if condition by using a simple scope. Learn how to move logic to model and simplify your if conditions. READ MORE
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Quite often it’s easy to simplify if condition by using a simple scope. Learn how to move logic to model and simplify your if conditions. READ MORE
Post a comment