Merge branch 'devops_3' of git.stu.neva.ru:cloudtechlab/devops-service into devops_3
This commit is contained in:
commit
92a43ed67c
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user