MorningPeak/app/helpers/tickets_helper.rb
Arthur Poulet b865a60bea Ticket is ready
- Ticket in user/admin sides ok (respond tested)
- Fix seeds
- Fix models
- Fix all migrations
- Add client_... controllers (bills/tickets)
2015-06-18 00:56:01 +02:00

12 lines
213 B
Ruby

module TicketsHelper
def link_to_creator ticket
if ticket.creator_type == "User"
return link_to ticket.creator_name, ticket.creator.client
else
return ticket.creator_name
end
end
end