use AR::Relation#extending! method to override query methods, much simpler.
Merge pull request #312 from globalize/simplify_relation_patch

use AR::Relation#extending! method to override query methods, much simpler