lib/paperweight/location.rb in paperweight-0.0.2 vs lib/paperweight/location.rb in paperweight-0.0.3
- old
+ new
@@ -13,22 +13,22 @@
def path
"#{table_name}/#{model.id}-#{style}-#{model.image_uuid}"
end
def url
- "#{self.class.prefix}/uploads/#{path}"
+ "#{self.class.prefix}/#{path}"
end
def default_url
- "#{self.class.prefix}/assets/#{table_name}/#{style}.gif"
+ "#{self.class.prefix}/#{table_name}/#{style}.gif"
end
def self.prefix
@prefix ||=
if Rails.env.production?
Paperweight.config.asset_server
else
- 'http://localhost:3000'
+ 'http://localhost:3000/paperweight'
end
end
private