Plug neocitizen for API, sort HTML first for file changes, Tumblr share link

This commit is contained in:
Kyle Drake 2014-06-04 19:10:11 -07:00
parent 7eee0f062d
commit 084a09c688
3 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,7 @@ class SiteChange < Sequel::Model
one_to_many :site_change_files
def site_change_filenames(limit=4)
site_change_files[0..limit-1].collect {|f| f.filename}
site_change_files[0..limit-1].collect {|f| f.filename}.sort_by {|f| f.match('html') ? 0 : 1}
end
def self.record(site, filename)