Update rule.rb

Optimize DB hits when supplying a scope (AR:Relation)