lib/paperweight/location.rb in paperweight-0.0.1 vs lib/paperweight/location.rb in paperweight-0.0.2

- old
+ new

@@ -13,11 +13,11 @@ def path "#{table_name}/#{model.id}-#{style}-#{model.image_uuid}" end def url - "#{self.class.prefix}/#{path}" + "#{self.class.prefix}/uploads/#{path}" end def default_url "#{self.class.prefix}/assets/#{table_name}/#{style}.gif" end @@ -25,10 +25,10 @@ def self.prefix @prefix ||= if Rails.env.production? Paperweight.config.asset_server else - 'http://localhost:3000/uploads' + 'http://localhost:3000' end end private