lib/recurly/resource.rb in recurly-2.3.5 vs lib/recurly/resource.rb in recurly-2.3.6

- old
+ new

@@ -1,6 +1,7 @@ require 'date' +require 'erb' module Recurly # The base class for all Recurly resources (e.g. {Account}, {Subscription}, # {Transaction}). # @@ -182,9 +183,10 @@ # @param uuid [String, nil] # @example # Recurly::Account.member_path "code" # => "accounts/code" # Recurly::Account.member_path nil # => "accounts" def member_path uuid + uuid = ERB::Util.url_encode(uuid) if uuid [collection_path, uuid].compact.join '/' end # @return [Array] Per attribute, defines readers, writers, boolean and # change-tracking methods.