RubyFlow The Ruby and Rails community linklog

Should you use scopes or class methods?

Scopes are a great way to grab the right objects out of your database. But when you call them, they look almost exactly like calling a class method. And class methods can do most of the same things scopes can. So why would you use a scope when you could use regular Ruby class methods?

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