activeadmin-generator 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -27,7 +27,7 @@ module ::Bricks
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def apply_letter_opener!
|
30
|
-
inject_into_file "config/environments/development.rb", " config.action_mailer.delivery_method = :letter_opener", after:
|
30
|
+
inject_into_file "config/environments/development.rb", " config.action_mailer.delivery_method = :letter_opener\n", after: "config.assets.debug = true\n"
|
31
31
|
end
|
32
32
|
|
33
33
|
end
|
@@ -45,8 +45,8 @@ module ::Bricks
|
|
45
45
|
gsub_file "config/environments/production.rb", /Don't fallback to assets pipeline/, "Fallback to assets pipeline"
|
46
46
|
gsub_file "config/environments/production.rb", /config\.assets\.compile = false/, "config.assets.compile = true"
|
47
47
|
gsub_file "config/environments/production.rb", /config\.serve_static_assets = false/, "config.serve_static_assets = true"
|
48
|
-
inject_into_file "config/environments/production.rb",
|
49
|
-
inject_into_file "config/environments/production.rb",
|
48
|
+
inject_into_file "config/environments/production.rb", " config.static_cache_control = 'public, max-age=2592000'\n", after: "config.serve_static_assets = true\n"
|
49
|
+
inject_into_file "config/environments/production.rb", " config.middleware.insert_before ActionDispatch::Static, Rack::Deflater\n", after: "config.serve_static_assets = true\n"
|
50
50
|
inject_into_file "config/application.rb", " config.assets.initialize_on_precompile = false\n", after: "config.assets.enabled = true\n"
|
51
51
|
|
52
52
|
@access_key = ENV['AMAZON_ACCESS_KEY_ID'] || ask("Amazon access key ID: ")
|