lib/chemistrykit/chemist/repository/csv_chemist_repository.rb in chemistrykit-3.8.1 vs lib/chemistrykit/chemist/repository/csv_chemist_repository.rb in chemistrykit-3.9.0.rc1

- old
+ new

@@ -32,10 +32,10 @@ # Load a specific chemist by the unique key def load_chemist_by_key(key) @tables.each do |table| chemist_data = table.find { |row| row[:key] == key } chemist = make_chemist(key, chemist_data[:type], chemist_data) if chemist_data - return fetch_from_cache chemist + return fetch_from_cache(chemist) if chemist end raise ArgumentError, "Chemist for type \"#{key}\" not found!" end # Required Method