Permalink
Browse files

Adding arbitraty search support

  • Loading branch information...
1 parent d283f5b commit 61e049e5deb33828814bce6788a77efc6f7e4c28 @maksar maksar committed Sep 15, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/netzke/basepack/data_accessor.rb
@@ -139,6 +139,8 @@ def get_relation(params = {})
relation = relation.extend_with(self.send(params[:scope], params[:scope_params])) if params[:scope]
+ relation = relation.search(params[:search]) if params[:search]
+
relation = relation.extend_with(config[:scope]) if config[:scope]
relation

0 comments on commit 61e049e

Please sign in to comment.