]> git.openstreetmap.org Git - rails.git/blobdiff - config/environments/production.rb
use a controller method to handle cancan denials
[rails.git] / config / environments / production.rb
index c4c98ad48fc3de6a72bbbf830fac696e998cc5a8..56bd2288109d56ce6bf6fcebf2cfa7f1152b266c 100644 (file)
@@ -93,9 +93,7 @@ Rails.application.configure do
   end
 
   # Do not dump schema after migrations.
-  unless STATUS == :database_offline
-    config.active_record.dump_schema_after_migration = false
-  end
+  config.active_record.dump_schema_after_migration = false unless STATUS == :database_offline
 
   # Enable autoloading of dependencies.
   config.enable_dependency_loading = true