Skip to content

Commit

Permalink
Simplify people_controller in ptime namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Aug 2, 2024
1 parent 2bcde37 commit 8cd1708
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/controllers/concerns/ptime/people_controller.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
module Ptime
module PeopleController
def show
return export if format_odt?

@person = Person.includes(projects: :project_technologies,
person_roles: [:role, :person_role_level]).find(@person.id)

Ptime::PeopleEmployees.new.update_person_data(@person)
super
Ptime::PeopleEmployees.new.update_person_data(@person)
end

def new
Expand Down

0 comments on commit 8cd1708

Please sign in to comment.