lib/builder.rb in sinatra_resource-0.2.6 vs lib/builder.rb in sinatra_resource-0.3.0

- old
+ new

@@ -61,11 +61,11 @@ if !@parent @klass.get '/?' do role = get_role(model) documents = documents_for_get_many(role, model, resource_config, true, nil, nil) resources = build_resources(documents, resource_config) - display(:read, resources, resource_config) + display(:list, resources, resource_config) end else association = @child_association parent_model = @parent_model parent_resource_config = @parent_resource_config @@ -76,10 +76,10 @@ parent_document = document_for_get_one(parent_role, parent_model, parent_resource_config, false, parent_id, nil, nil) # ------ role = get_role(model) documents = documents_for_get_many(role, model, resource_config, true, parent_document, association) resources = build_resources(documents, resource_config) - display(:read, resources, resource_config) + display(:list, resources, resource_config) end end end def build_post