Fix order of attachments (see #269)

master
Eugen Rochko 8 years ago
parent 397f7dda5d
commit f860d15d39
  1. 2
      app/models/media_attachment.rb

@ -16,6 +16,8 @@ class MediaAttachment < ApplicationRecord
validates :account, presence: true
default_scope { order('id asc') }
def local?
remote_url.blank?
end

Loading…
Cancel
Save