app/models/esr_file.rb in vesr-0.12.3 vs app/models/esr_file.rb in vesr-0.12.4

- old
+ new

@@ -4,17 +4,17 @@ has_many :esr_records, :dependent => :destroy def to_s(format = :default) case format - when :short - "#{updated_at.strftime('%d.%m.%Y')}: #{esr_records.count} Buchungen" - else + when :long s = '' esr_records.each {|record| s += record.to_s + "\n" } s + else + "#{updated_at.strftime('%d.%m.%Y')}: #{file_identifier}" end end after_save :create_records