module Todo::Helpers

A module that contains helper methods

Constants

DATABASE

The database

Public Instance Methods

task_names() click to toggle source

Gets a list of the tasks in the working lists

@return [Dataset] the dataset containing all of the tasks in the working lists

# File lib/to-do/helpers/helpers.rb, line 13
def task_names 
        Helpers::DATABASE[:Tasks].join(:Task_list, :Tasks__Id => :Task_list__Task_Id).join(
        :Lists, :Lists__Id => :Task_list__List_id).select(:Tasks__Id, :Tasks__Task_number, 
        :Tasks__Name, :Tasks__Completed, :Tasks__Priority).filter(:Lists__Name => Config[:working_list_name])
end