zenchild/Viewpoint — pull request #41 by TobiG77 (2012-06-08 08:24:44+00:00)
Title: change hardcoded symbol reference in method to method argument

My expectation, when reading the code in lib/model/generic_folder.rb

was to use it in the following way:

root = Viewpoint::EWS::Folder.get_folder('Inbox')
folder_names = Viewpoint::EWS::Folder.folder_names :root

or for public folders
folder_names = Viewpoint::EWS::Folder.folder_names :publicfoldersroot

However, the methods were not using the argument but an hardcoded symbol, surely an oversight when refactoring the code?

This is an example fix, more to follow once confirmed whether this is actually the right way or I am completely missing something here