README.markdown in spud_photos-0.9.2 vs README.markdown in spud_photos-0.9.3
- old
+ new
@@ -16,11 +16,11 @@
4. Run a rails server instance and point your browser to /spud/admin
## Configuration
-Spud Photos accepts the following configuration options:
+Spud Photos accepts the following configuration options. Place them in `application.rb` or in an initializer.
Spud::Photos.configure do |config|
config.base_layout = 'application'
config.galleries_enabled = false
config.base_path = 'photos'
@@ -32,10 +32,11 @@
}
config.paperclip_storage = :filesystem #use :s3 to use s3 storage (aws gem required)
config.s3_credentials = "#{Rails.root}/config/s3.yml"
config.storage_path = ":rails_root/public/system/spud_photos/:id/:style/:basename.:extension"
config.storage_url = "/system/spud_photos/:id/:style/:basename.:extension"
+ config.s3_host_name = "s3.amazonaws.com" #Defaults to us east zone, change for other regions.
end
The `photo_styles` option will be passed to [Paperclip][2], so any valid paperclip styles can be added here.
## Galleries
@@ -70,6 +71,6 @@
3. Run the tests with RSpec
rspec spec
-After the tests have completed the current code coverage stats is available by opening ```/coverage/index.html``` in a browser.
\ No newline at end of file
+After the tests have completed the current code coverage stats is available by opening ```/coverage/index.html``` in a browser.