RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

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!

ActiveRecord isolated, namespaced scopes and methods using instance_exec and ActiveSu

A blog post about creating ActiveRecord concerns that include scopes hidden under chainable namespaces. With this approach you can have multiple scopes with the same name, providing different functionalities, based on a context. It can be also used to namespace everything that is under an ActiveRecord concern module. 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