lib/active_house/collectable.rb in active_house-0.2.1 vs lib/active_house/collectable.rb in active_house-0.2.2
- old
+ new
@@ -31,9 +31,9 @@
def collection
@collection ||= fetch_collection
end
def fetch_collection
- to_hash.map { |row| model_class.load!(row) }
+ to_hashes.map { |row| model_class.load!(row) }
end
end
end