Method: RedactorAws::Aws#initialize
- Defined in:
- app/models/redactor_aws/aws.rb
#initialize ⇒ Aws
Returns a new instance of Aws.
5 6 7 8 9 10 11 12 |
# File 'app/models/redactor_aws/aws.rb', line 5 def initialize @access_key = RedactorAws.access_key || ENV['AWS_ACCESS_KEY_ID'] @secret_key = RedactorAws.secret_key || ENV['AWS_SECRET_ACCESS_KEY'] @bucket = RedactorAws.bucket @region = RedactorAws.region @prefix = RedactorAws.prefix @success_path = "http://#{Ksv::Application.config.action_mailer.default_url_options[:host]}/aws/success" end |