Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
host
Smilodon
Commits
f860d15d
Commit
f860d15d
authored
Nov 28, 2016
by
Eugen Rochko
Browse files
Fix order of attachments (see #269)
parent
397f7dda
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/media_attachment.rb
View file @
f860d15d
...
...
@@ -16,6 +16,8 @@ class MediaAttachment < ApplicationRecord
validates
:account
,
presence:
true
default_scope
{
order
(
'id asc'
)
}
def
local?
remote_url
.
blank?
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment