Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Fix comment styles
Browse files Browse the repository at this point in the history
  • Loading branch information
netmask committed May 16, 2016
1 parent a13fa20 commit 3c5f9db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/paperclip/io_adapters/uri_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ def initialize(target)
@tempfile = copy_to_tempfile(@content)
end

private

def cache_current_values
self.content_type = content_type_from_content || "text/html"

self.original_filename = filename_from_content_disposition ||
filename_from_path || default_filename

filename_from_path || default_filename
@size = @content.size
end

Expand All @@ -41,8 +42,6 @@ def default_filename
"index.html"
end

private

def download_content
open(@target)
end
Expand Down

0 comments on commit 3c5f9db

Please sign in to comment.