From 62a9f64d855e326ad306f5a918aa27a71cc71e26 Mon Sep 17 00:00:00 2001 From: Tim Cooper Date: Fri, 29 Jul 2011 01:02:15 +1000 Subject: [PATCH] Default fog_public option to true (as stated in documentation). --- lib/paperclip/storage/fog.rb | 2 +- test/fog_test.rb | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/paperclip/storage/fog.rb b/lib/paperclip/storage/fog.rb index a72615f61..1904e5998 100644 --- a/lib/paperclip/storage/fog.rb +++ b/lib/paperclip/storage/fog.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' diff --git a/test/fog_test.rb b/test/fog_test.rb index da35ef509..5ff19451d 100644 --- a/test/fog_test.rb +++ b/test/fog_test.rb @@ -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 )