Skip to content

Commit

Permalink
Merge branch 'default_fog_public_to_true' of https://github.com/coop/…
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-burns committed Jul 28, 2011
2 parents 5ac36c4 + 62a9f64 commit 31df612
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/paperclip/storage/fog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def self.extended base
@fog_directory = @options[:fog_directory]
@fog_credentials = @options[:fog_credentials]
@fog_host = @options[:fog_host]
@fog_public = @options[:fog_public]
@fog_public = @options[:fog_public] || true
@fog_file = @options[:fog_file] || {}

@url = ':fog_public_url'
Expand Down
2 changes: 0 additions & 2 deletions test/fog_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class FogTest < Test::Unit::TestCase
:fog_directory => @fog_directory,
:fog_credentials => @credentials,
:fog_host => nil,
:fog_public => true,
:fog_file => {:cache_control => 1234},
:path => ":attachment/:basename.:extension",
:storage => :fog
Expand Down Expand Up @@ -100,7 +99,6 @@ class FogTest < Test::Unit::TestCase
:fog_directory => @fog_directory,
:fog_credentials => @credentials,
:fog_host => 'http://img%d.example.com',
:fog_public => true,
:path => ":attachment/:basename.:extension",
:storage => :fog
)
Expand Down

0 comments on commit 31df612

Please sign in to comment.