Skip to content

Commit

Permalink
fixed pdf urls
Browse files Browse the repository at this point in the history
  • Loading branch information
malomalo committed Jun 20, 2013
1 parent 3927bc6 commit 787d863
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mls/models/floorplan.rb
Expand Up @@ -9,7 +9,7 @@ class MLS::Floorplan < MLS::Resource
property :file_size, Fixnum

def url(protocol='http')
"#{protocol}://#{MLS.asset_host}/floorplans/#{digest}/#{file_name}"
"#{protocol}://#{MLS.asset_host}/floorplans/#{digest}/compressed/#{file_name}"
end

def avatar(size='150x100#', protocol='http')
Expand Down
2 changes: 1 addition & 1 deletion lib/mls/models/flyer.rb
Expand Up @@ -9,7 +9,7 @@ class MLS::Flyer < MLS::Resource
property :file_size, Fixnum

def url(protocol='http')
"#{protocol}://#{MLS.asset_host}/flyers/#{digest}/#{file_name}"
"#{protocol}://#{MLS.asset_host}/flyers/#{digest}/compressed/#{file_name}"
end

def avatar(size='150x100#', protocol='http')
Expand Down
2 changes: 1 addition & 1 deletion mls.gemspec
Expand Up @@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)

Gem::Specification.new do |s|
s.name = "mls"
s.version = '0.5.3'
s.version = '0.5.4'
s.authors = ["James R. Bracy", "Jon Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"
Expand Down

0 comments on commit 787d863

Please sign in to comment.