Add this line to your application's Gemfile:
gem 'mahbucket'And then execute:
$ bundleOr install it yourself as:
$ gem install mahbucketconfig/initializers/mahbucket.rb
require 'mahbucket'
authorize_request = Proc.new do |request|
# Define how to authroize a request
end
Mahbucket.setup do |config|
config.authorize_request = authorize_request
config.s3_credentials = {
region: <region>
bucket: <bucket name>,
access_key_id: <access key id>
secret_access_key: <secret access key>
}
end