This scope maybe deserves a method in front_controller to help with the logic, because maybe we could use it in another model (I mean use the scope 'variaciones' at other models)...or maybe I'm wrong.