Skip to content
Snippets Groups Projects
Commit f860d15d authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix order of attachments (see #269)

parent 397f7dda
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,8 @@ class MediaAttachment < ApplicationRecord
validates :account, presence: true
default_scope { order('id asc') }
def local?
remote_url.blank?
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment