Class: Kennel::ProjectsProvider
- Inherits:
-
Object
- Object
- Kennel::ProjectsProvider
- Defined in:
- lib/kennel/projects_provider.rb
Defined Under Namespace
Classes: AutoloadFailed
Instance Method Summary collapse
-
#all_projects ⇒ Array<Models::Project>
All projects in the system.
-
#projects ⇒ Array<Models::Project>
All projects in the system.
Instance Method Details
#all_projects ⇒ Array<Models::Project>
Returns All projects in the system. This is a slow operation. Use ‘projects` to get all projects in the system.
10 11 12 13 |
# File 'lib/kennel/projects_provider.rb', line 10 def all_projects load_all Models::Project.recursive_subclasses.map(&:new) end |
#projects ⇒ Array<Models::Project>
Returns All projects in the system. This is a slow operation.
18 19 20 21 |
# File 'lib/kennel/projects_provider.rb', line 18 def projects load_all Models::Project.recursive_subclasses.map(&:new) end |