From 9ec5e215007dbcaa450c9ffa08563ca6e18a3566 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 20 Jul 2015 17:29:29 +0800 Subject: [PATCH] fix for fallback if site cant communicate to store and also fixed edit mode --- app/views/orbit_bar/index.html.erb | 2 +- config/environment.rb | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/orbit_bar/index.html.erb b/app/views/orbit_bar/index.html.erb index 47d63c9..bf63582 100644 --- a/app/views/orbit_bar/index.html.erb +++ b/app/views/orbit_bar/index.html.erb @@ -160,7 +160,7 @@ <% if params[:editmode] == "on" %> " style="color:red;">Edit Mode Off <% else %> - ">Edit Mode On + ">Edit Mode On <% end %> <% end %> diff --git a/config/environment.rb b/config/environment.rb index 437818a..6a3c37b 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -5,7 +5,10 @@ require File.expand_path('../application', __FILE__) Orbit::Application.initialize! Orbit::Application.config.secret_key_base = 'acc6ffc5a7d360c9cf2a7bdb4ddf9a897942ec6767413a5c0324a0fa8b86197a96298288a66bd46d8770d8b6edf509aad65716961c2c364ce006b475e6cfd418' OrbitApp.cleanup_modules -OrbitApp.check_module_permissions +begin + OrbitApp.check_module_permissions +rescue Exception => e +end if Site.count == 0 site = Site.new