lib/dm-serializer/to_csv.rb in dm-serializer-0.10.1 vs lib/dm-serializer/to_csv.rb in dm-serializer-0.10.2
- old
+ new
@@ -18,10 +18,10 @@
#
# @return <String> a CSV representation of the Resource
def to_csv(writer = '')
CSV.generate(writer) do |csv|
row = model.properties(repository.name).map do |property|
- send(property.name).to_s
+ __send__(property.name).to_s
end
csv << row
end
end
end