```ruby
class BookingImportAttachment < Attachment
  # Booking Import
  has_one :booking_import
  accepts_nested_attributes_for :booking_import

  def content
    File.read(file.current_path, :encoding => self.encoding)
  end
end
```

Fix .line endings in MT940 files before parsing.
user
```ruby
class BookingImportAttachment < Attachment
  # Booking Import
  has_one :booking_import
  accepts_nested_attributes_for :booking_import

  def content
    File.read(file.current_path, :encoding => self.encoding).encode(universal_newline: true)
  end
end
```
assistant