class Item

@author Lovell McIlwain# Handles business logic for todo item

Constants

COMPLETE_STATUSES
DETAILED_STATUSES
INCOMPLETE_STATUSES

Public Instance Methods

update_done() click to toggle source

set done attribute based on detailed_status set

# File lib/my_todo/models/item.rb, line 29
def update_done
  self.done = true if COMPLETE_STATUSES.include? self.detailed_status
end