add ugoira support in view

This commit is contained in:
r888888888
2014-10-19 02:30:02 -07:00
parent 3bb06c2be4
commit 4c73fb9f79
10 changed files with 69 additions and 8 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
class PixivUgoiraFrameData < ActiveRecord::Base
attr_accessible :post_id, :data
attr_accessible :post_id, :data, :content_type
serialize :data
end
+5 -1
View File
@@ -138,7 +138,11 @@ class Post < ActiveRecord::Base
end
def is_video?
file_ext =~ /webm|zip/i
file_ext =~ /webm/i
end
def is_ugoira?
file_ext =~ /zip/i
end
def has_preview?