about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-28 13:49:42 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-28 13:49:55 +0100
commitf860d15d39687f43ff36930c3c079abe677ae098 (patch)
tree0028b8337ee2d20c1228d4ac0fcf3baad98c4387 /app/models
parent397f7dda5dd640de70d7a76158857f3f63ebd488 (diff)
Fix order of attachments (see #269)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/media_attachment.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb
index bfbf00d76..f1b9b8112 100644
--- a/app/models/media_attachment.rb
+++ b/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