Class: Daylite::Organization

Inherits:
Base show all
Defined in:
app/models/daylite/organization.rb

Instance Method Summary collapse

Methods inherited from Base

#method_missing, #readonly?

Methods inherited from ActiveRecord::Base

openbase_connection

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Daylite::Base

Instance Method Details

#all_tasksObject



14
15
16
# File 'app/models/daylite/organization.rb', line 14

def all_tasks
  projects_tasks + tasks
end

#projects_tasksObject



10
11
12
# File 'app/models/daylite/organization.rb', line 10

def projects_tasks
  projects.collect { |p| p.tasks }.flatten
end