Skip to content

Commit

Permalink
use File.join correctly with URL parts.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiestacasey committed May 19, 2015
1 parent bb24f90 commit 337deb8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/freshdesk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,15 @@ def self.fd_define_put(name)
# companies => /customers.xml
def mapping(method_name, id = nil)
case method_name
when "tickets" then File.join(@base_url + "helpdesk/tickets.xml")
when "user_ticket" then File.join(@base_url + "helpdesk/tickets/user_ticket.xml")
when "tickets" then File.join(@base_url, "helpdesk/tickets.xml")
when "user_ticket" then File.join(@base_url, "helpdesk/tickets/user_ticket.xml")
when "ticket_fields" then File.join(@base_url, "ticket_fields.xml")
when "ticket_notes" then File.join(@base_url, "helpdesk/tickets/#{id}/notes.xml")
when "users" then File.join(@base_url, "contacts.xml")
when "forums" then File.join(@base_url + "categories.xml")
when "solutions" then File.join(@base_url + "solution/categories.xml")
when "companies" then File.join(@base_url + "customers.xml")
when "time_sheets" then File.join(@base_url + "helpdesk/time_sheets.xml")
when "forums" then File.join(@base_url, "categories.xml")
when "solutions" then File.join(@base_url, "solution/categories.xml")
when "companies" then File.join(@base_url, "customers.xml")
when "time_sheets" then File.join(@base_url, "helpdesk/time_sheets.xml")
end
end

Expand Down

0 comments on commit 337deb8

Please sign in to comment.