lib/muddyit/sites/entities/entity.rb in monkeyhelper-muddyit_fu-0.2.2 vs lib/muddyit/sites/entities/entity.rb in monkeyhelper-muddyit_fu-0.2.3

- old
+ new

@@ -12,11 +12,11 @@ # # Params # * options (Optional) # def related(options = {}) - api_url = "/sites/#{self.site.attributes[:token]}/entities/#{Digest::MD5.hexdigest(URI.encode(@attributes[:uri]))}/related" + api_url = "/sites/#{self.site.attributes[:token]}/entities/#{Digest::MD5.hexdigest(@attributes[:uri])}/related" response = @muddyit.send_request(api_url, :get, options) results = [] response.each { |result| # The return format needs sorting out here ....... @@ -25,10 +25,10 @@ return results end protected def fetch - api_url = "/sites/#{@attributes[:site][:token]}/entities/#{Digest::MD5.hexdigest(URI.encode(@attributes[:uri]))}" + api_url = "/sites/#{@attributes[:site][:token]}/entities/#{Digest::MD5.hexdigest(@attributes[:uri])}" response = @muddyit.send_request(api_url, :get) response.nested_symbolize_keys! end end \ No newline at end of file