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