* carrierwave to use public

This commit is contained in:
Seth Call 2013-06-26 09:54:58 -05:00
parent 7ea89dd38a
commit e39f61fa35
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ class ArtifactsController < ApiController
render :json => result, :status => :ok
end
def versioncheck
# the reported client version

View File

@ -11,7 +11,7 @@ CarrierWave.configure do |config|
:aws_secret_access_key => SampleApp::Application.config.aws_secret_access_key,
:region => SampleApp::Application.config.aws_region,
}
config.fog_directory = SampleApp::Application.config.aws_bucket # required
config.fog_directory = SampleApp::Application.config.aws_bucket_public # required
config.fog_public = true # optional, defaults to true
config.fog_attributes = {'Cache-Control'=>"max-age=#{SampleApp::Application.config.aws_cache}"} # optional, defaults to {}
end