11 lines
283 B
Ruby
11 lines
283 B
Ruby
if AppConfig.environment.assets.upload? && AppConfig.environment.s3.enable?
|
|
# Monkey patch to make Rails.root available early
|
|
require 'pathname'
|
|
module Rails
|
|
def self.root
|
|
@@root ||= Pathname.new(__FILE__).dirname.join('..')
|
|
end
|
|
end
|
|
|
|
require 'asset_sync'
|
|
end
|