app/models/task.rb
def right_day
    if self.kind == "Weekly"
      if self.day_in_week == Time.now.strftime("%a")
        return true
      else
        return false
      end
    else
      return true
    end
  end
#returns boolean if today is the correct day for a weekly task
returns boolean if today is the correct day for a weekly task
returns boolean if today is the correct day for a weekly task
def right_day
    if self.kind == "Weekly"
      if self.day_in_week == Time.now.strftime("%a")
        return true
      else
        return false
      end
    else
      return true
    end
  end
def right_day if self . kind == "Weekly" if self . day_in_week == Time . now . strftime ( "%a" ) return true else return false end else return true end end
returns boolean if today is the correct day for a weekly task
returns boolean if today is the correct day for a weekly task