6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/cybele/helpers/active_storage.rb', line 6
def active_storage_setting
%w[config/environments/production.rb config/environments/staging.rb
config/environments/development.rb].each do |file|
gsub_file file,
/config.active_storage.service = :local/,
'config.active_storage.service = :amazon'
end
handle_active_storage_change_file_content
%w[.env.local .env.production .env.staging .env.sample].each do |env|
append_file(env, template_content('active_storage/amazon_env_all.erb'))
end
end
|