lib/syncano/resources/folder.rb in syncano-3.1.1.beta5 vs lib/syncano/resources/folder.rb in syncano-3.1.1

- old
+ new

@@ -3,10 +3,10 @@ # Folder resource class Folder < ::Syncano::Resources::Base # Association has_many :data_objects # @return [Syncano::QueryBuilder] query builder for resource Syncano::Resources::DataObject def data_objects - ::Syncano::QueryBuilder.new(client, ::Syncano::Resources::DataObject, scope_parameters.merge(folder: @saved_attributes[:name])) + ::Syncano::QueryBuilder.new(client, ::Syncano::Resources::DataObject, scope_parameters.merge(folders: @saved_attributes[:name])) end # Wrapper for api "get_one" method with folder_name as a key # @param [Syncano::Clients::Base] client # @param [String] name \ No newline at end of file