FIX: should be able to serve optimized image from local if its ... local...

This commit is contained in:
Sam
2015-05-26 12:32:52 +10:00
parent 90eaad336d
commit eeda367e70
3 changed files with 20 additions and 1 deletions

View File

@@ -83,6 +83,10 @@ class OptimizedImage < ActiveRecord::Base
end
end
def local?
!(url =~ /^(https?:)?\/\//)
end
def self.resize_instructions(from, to, dimensions, opts={})
# NOTE: ORDER is important!
%W{