Permalink
Browse files

Default fog_public option to true (as stated in documentation).

  • Loading branch information...
1 parent dcad54d commit 62a9f64d855e326ad306f5a918aa27a71cc71e26 @coop coop committed Jul 28, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −1 lib/paperclip/storage/fog.rb
  2. +0 −2 test/fog_test.rb
@@ -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'
View
@@ -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
@@ -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
)

0 comments on commit 62a9f64

Please sign in to comment.