Commit 62a9f64d by Tim Cooper

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

parent dcad54d4
...@@ -44,7 +44,7 @@ module Paperclip ...@@ -44,7 +44,7 @@ module Paperclip
@fog_directory = @options[:fog_directory] @fog_directory = @options[:fog_directory]
@fog_credentials = @options[:fog_credentials] @fog_credentials = @options[:fog_credentials]
@fog_host = @options[:fog_host] @fog_host = @options[:fog_host]
@fog_public = @options[:fog_public] @fog_public = @options[:fog_public] || true
@fog_file = @options[:fog_file] || {} @fog_file = @options[:fog_file] || {}
@url = ':fog_public_url' @url = ':fog_public_url'
......
...@@ -24,7 +24,6 @@ class FogTest < Test::Unit::TestCase ...@@ -24,7 +24,6 @@ class FogTest < Test::Unit::TestCase
:fog_directory => @fog_directory, :fog_directory => @fog_directory,
:fog_credentials => @credentials, :fog_credentials => @credentials,
:fog_host => nil, :fog_host => nil,
:fog_public => true,
:fog_file => {:cache_control => 1234}, :fog_file => {:cache_control => 1234},
:path => ":attachment/:basename.:extension", :path => ":attachment/:basename.:extension",
:storage => :fog :storage => :fog
...@@ -100,7 +99,6 @@ class FogTest < Test::Unit::TestCase ...@@ -100,7 +99,6 @@ class FogTest < Test::Unit::TestCase
:fog_directory => @fog_directory, :fog_directory => @fog_directory,
:fog_credentials => @credentials, :fog_credentials => @credentials,
:fog_host => 'http://img%d.example.com', :fog_host => 'http://img%d.example.com',
:fog_public => true,
:path => ":attachment/:basename.:extension", :path => ":attachment/:basename.:extension",
:storage => :fog :storage => :fog
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment