From 0b87b003ee01bc7be53faa1ec994e52fa1074533 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 20 Mar 2012 13:45:10 +0000 Subject: [PATCH] Fixed for offline mode --- config/application.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.43.2