Merge branch 'devops_3' of git.stu.neva.ru:cloudtechlab/devops-service into devops_3

This commit is contained in:
Anton Chuchkalov 2015-07-10 15:05:57 +03:00
commit 92a43ed67c

View File

@ -2,7 +2,7 @@ module Connectors
class Project < Base
include Helpers::InsertCommand,
Helpers::ShowCommand,
Helpers::ListCommand,
# Helpers::ListCommand,
Helpers::DeleteCommand,
Helpers::UpdateCommand
@ -95,6 +95,10 @@ module Connectors
private
def list(query={}, query_options={})
@collection.find(query, query_options).to_a.map {|bson| model_from_bson(bson)}
end
def model_from_bson(bson)
Devops::Model::Project.build_from_bson(bson)
end