AgileVentures / MetPlus_tracker

Git Repository for the Waffle issue in MetPlus project
2 stars 4 forks source link

Remove unneeded User class methods #362

Open patmbolger opened 8 years ago

patmbolger commented 8 years ago

As a developer I need to refactor code and remove unneeded logic

patmbolger commented 8 years ago

The User class contains these class methods:

self.is_job_seeker?(user)

self.is_job_developer?(user)

self.is_case_manager?(user)

self.is_agency_admin?(user)

self.is_company_admin?(user)

self.is_company_contact?(user)

self.is_company_person?(user)

These can be removed and the invocation of these methods can use similarly-name instance methods defined in JobSeeker, AgencyPerson and CompanyPerson classes.