RubyFlow The Ruby and Rails community linklog

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

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in