This commit is contained in:
Toks
2013-05-25 20:13:01 -04:00
parent 77dfd91702
commit 7a693ad2c8

View File

@@ -143,11 +143,11 @@ class Post < ActiveRecord::Base
end
def is_image?
file_ext =~ /jpg|jpeg|gif|png/
file_ext =~ /jpg|jpeg|gif|png/i
end
def is_flash?
file_ext =~ /swf/
file_ext =~ /swf/i
end
end