lib/dbf/table.rb in dbf-4.0.0 vs lib/dbf/table.rb in dbf-4.0.1

- old
+ new

@@ -113,10 +113,12 @@ record_count.times { |i| yield record(i) } end # @return [String] def filename - File.basename(@data.path) if @data.respond_to?(:path) + return unless @data.respond_to?(:path) + + File.basename(@data.path) end # Find records using a simple ActiveRecord-like syntax. # # Examples: