Skip to content

Commit

Permalink
Renamed 'find' to 'find_with_filters'
Browse files Browse the repository at this point in the history
Attempting to make the purpose of the method clearer. The method
uses 'params' to scope down (filter) the search.
  • Loading branch information
djsun committed Oct 2, 2009
1 parent 78665e7 commit 8d5b0cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rest-sinatra.rb
Expand Up @@ -73,7 +73,7 @@ def build_parent_resource(config)

get '/?' do
require_at_least(:basic)
@documents = find(params, model)
@documents = find_with_filters(params, model)
@documents.to_json
end

Expand Down

0 comments on commit 8d5b0cf

Please sign in to comment.