Say there are 3 models: A, B, and C. Each of these models has the x attribute.
x
Is that possible to define a named scope in a module and include this mod
As for Rails 4.x you can use gem scopes_rails
It can generate scopes file and include it to your model.
scopes
Also, it can automatically generate scopes for state_machines states.
state_machines