lib/contextio/api/resource_collection.rb in contextio-1.2.3 vs lib/contextio/api/resource_collection.rb in contextio-1.2.4
- old
+ new
@@ -101,10 +101,10 @@
# provider = contextio.oauth_providers['1234']
#
# @param [String] key The Provider Consumer Key for the
# provider you want to interact with.
def [](key)
- resource_class.new(api, resource_class.primary_key => key)
+ resource_class.new(api, associations_hash.merge(resource_class.primary_key => key))
end
private
# @!attribute [r] attribute_hashes