Skip to content

Commit

Permalink
Added ability to change root
Browse files Browse the repository at this point in the history
  • Loading branch information
tbk303 committed Oct 16, 2014
1 parent 21e2f13 commit a524d99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/forty_facets/facet_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ def root
@root || self.class.root_scope
end

def change_root new_root
@root = new_root
end

private

def request_to_search_params(request_params)
Expand Down

0 comments on commit a524d99

Please sign in to comment.