class Note

@author Lovell McIlwain# Handles business logic for todo item

Public Instance Methods

tag_created_at() click to toggle source

set created at to the current date

# File lib/my_todo/models/note.rb, line 20
def tag_created_at
  self.created_at = Date.today
end
tag_updated_at() click to toggle source

set updated at to the current date

# File lib/my_todo/models/note.rb, line 25
def tag_updated_at
  self.updated_at = Date.today if changes.size > 0
end