b865a60bea
- Ticket in user/admin sides ok (respond tested) - Fix seeds - Fix models - Fix all migrations - Add client_... controllers (bills/tickets)
12 lines
213 B
Ruby
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
|