PatientBank/Core — pull request #106 by mertcelebi (2014-07-07 00:14:09+00:00)
Title: Tasks Backend

I think I am done. Finished tasks_controller methods, model validations/methods, basic unit testing for tasks and mailer configurations and views.

Currently, all task tests are failing, with the error `NoMethodError: undefined method `name' for :task:Symbol`.

I think the problem is related to name field of admin. That made me realize several things:
1. We didn't do the separation of `first_name`, `middle_name`, `last_name` for the `Admin` class. We probably should do that.
2. Also, I didn't see any validations for the presence of name-related fields in both `Patient` and `Admin` models. Shouldn't we have them?
3. When you are reviewing, please put more attention to tasks_controller.rb and task.rb. I wasn't really sure about how I should formulate the kinda circular relationship of assigner and assignee through the `Admin` class.