lib/massive/file.rb in massive-0.1.0 vs lib/massive/file.rb in massive-0.1.1
- old
+ new
@@ -33,9 +33,13 @@
end
save
end
+ def has_info?
+ [:encoding, :col_sep, :total_count].all? { |field| send(field).present? }
+ end
+
def url
read_attribute(:url).presence || authenticated_url
end
private