Skip to content

Commit

Permalink
bits
Browse files Browse the repository at this point in the history
  • Loading branch information
manishkukreja committed Apr 18, 2012
1 parent bd8ea8b commit fbada1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/book.rb
Expand Up @@ -91,7 +91,7 @@ def asset_url(path, ext = nil)
#"/public/uploads/book/#{path}/#{asset_name}" + (ext ? ".#{ext}": "")
#@book.audio_url
#"http://media.railscasts.com/assets/episodes/#{path}/#{asset_name}" + (ext ? ".#{ext}" : "")
#"https://s3.amazonaws.com/bookshelf_audio/#{asset_name}" + (ext ? ".#{ext}" : "")
"https://s3.amazonaws.com/bookshelf_audio/#{asset_name}" + (ext ? ".#{ext}" : "")
end

#######
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/carrierwave.rb
Expand Up @@ -13,7 +13,7 @@
:aws_secret_access_key => '1s+Wiy6l5rhLCVxaMO59wQr/DdBWeKp7ZHrXq7sp', # required
:region => 'US-Standard' # optional, defaults to 'us-east-1'
}
config.fog_directory = 'bookshelf_test_bucket' # required
config.fog_directory = 'bookshelf_audio' # required
#config.fog_host = 'https://www.gmail.com' # optional, defaults to nil
config.fog_public = true # optional, defaults to true
config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} # optional, defaults to {}
Expand Down

0 comments on commit fbada1f

Please sign in to comment.