From: Tom Hughes Date: Tue, 20 Mar 2012 13:45:10 +0000 (+0000) Subject: Fixed for offline mode X-Git-Tag: live~5639 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/0b87b003ee01bc7be53faa1ec994e52fa1074533 Fixed for offline mode --- diff --git a/config/application.rb b/config/application.rb index 25df04b44..879f5714d 100644 --- a/config/application.rb +++ b/config/application.rb @@ -62,7 +62,9 @@ module OpenStreetMap # This will create an empty whitelist of attributes available for mass-assignment for all models # in your app. As such, your models will need to explicitly whitelist or blacklist accessible # parameters by using an attr_accessible or attr_protected declaration. - config.active_record.whitelist_attributes = true + unless STATUS == :database_offline + config.active_record.whitelist_attributes = true + end # Enable the asset pipeline config.assets.enabled = true