app/models/concerns/polygallery/acts_as_polyphoto.rb in polygallery-0.3.0 vs app/models/concerns/polygallery/acts_as_polyphoto.rb in polygallery-0.3.1

- old
+ new

@@ -112,8 +112,17 @@ def init_attachment self.class.init_attachment paperclip_settings end + def remote_url(style=nil) + host = ActionController::Base.asset_host + host = "http://#{host}" unless host.nil? || host =~ /^http/ + path = photo.url(style) + url = (host||'') + (path||'') + url unless url.blank? + end + def thumb_url; remote_url(:thumb) end + end end end