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
|
class Project < Base
|
||||||
include Helpers::InsertCommand,
|
include Helpers::InsertCommand,
|
||||||
Helpers::ShowCommand,
|
Helpers::ShowCommand,
|
||||||
Helpers::ListCommand,
|
# Helpers::ListCommand,
|
||||||
Helpers::DeleteCommand,
|
Helpers::DeleteCommand,
|
||||||
Helpers::UpdateCommand
|
Helpers::UpdateCommand
|
||||||
|
|
||||||
@ -95,6 +95,10 @@ module Connectors
|
|||||||
|
|
||||||
private
|
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)
|
def model_from_bson(bson)
|
||||||
Devops::Model::Project.build_from_bson(bson)
|
Devops::Model::Project.build_from_bson(bson)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user