mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: only load S3 stuff when we need it
This commit is contained in:
parent
3cf87b94c9
commit
577f7446b4
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,3 @@
|
|||
require "s3_helper"
|
||||
|
||||
class Backup
|
||||
include UrlHelper
|
||||
include ActiveModel::SerializerSupport
|
||||
|
@ -47,8 +45,8 @@ class Backup
|
|||
end
|
||||
|
||||
def s3
|
||||
return @s3_helper if @s3_helper
|
||||
@s3_helper = S3Helper.new(s3_bucket)
|
||||
require "s3_helper" unless defined? S3Helper
|
||||
@s3_helper ||= S3Helper.new(s3_bucket)
|
||||
end
|
||||
|
||||
def upload_to_s3
|
||||
|
|
Loading…
Reference in a new issue