Fix order of attachments (see #269)

pull/6/head
Eugen Rochko 2016-11-28 13:49:42 +01:00
parent 397f7dda5d
commit f860d15d39
1 changed files with 2 additions and 0 deletions

View File

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