ref: refs/heads/dmacvicar_log_viewer
commit ece00a2262f186f62bf923436dea1e146e3934b6
Author: Josef Reidinger
Date: Tue Aug 18 16:39:47 2009 +0200
use rails 2.3 initializers, store here session settings
---
webclient/config/environment.rb | 14 --------------
.../config/initializers/backtrace_silencers.rb | 7 +++++++
webclient/config/initializers/session_store.rb | 15 +++++++++++++++
3 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/webclient/config/environment.rb b/webclient/config/environment.rb
index 57af2b9..882beb0 100644
--- a/webclient/config/environment.rb
+++ b/webclient/config/environment.rb
@@ -46,20 +46,6 @@ init = Rails::Initializer.run do |config|
# Run "rake -D time" for a list of tasks for finding time zone names. Uncomment to use default local time.
config.time_zone = 'UTC'
- # Your secret key for verifying cookie session data integrity.
- # If you change this key, all old sessions will become invalid!
- # Make sure the secret is at least 30 characters and all random,
- # no regular words or you'll be exposed to dictionary attacks.
- config.action_controller.session = {
- :session_key => '_web-client_session',
- :secret => 'f05944f2fa89ced61528d66622c2f5f4dded5912a1276890d2907d012c416f3a32f22dbd22f24614346c1360380dbf71a6fcbbc0e32b2d0cc6812afc623d6c41'
- }
-
- # Use the database for sessions instead of the cookie-based default,
- # which shouldn't be used to store highly confidential information
- # (create the session table with "rake db:sessions:create")
- # config.action_controller.session_store = :active_record_store
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
# like if you have constraints or database-specific column types
diff --git a/webclient/config/initializers/backtrace_silencers.rb b/webclient/config/initializers/backtrace_silencers.rb
new file mode 100644
index 0000000..b882c65
--- /dev/null
+++ b/webclient/config/initializers/backtrace_silencers.rb
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
+# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
+
+# You can also remove all the silencers if you're trying do debug a problem that might steem from framework code.
+ Rails.backtrace_cleaner.remove_silencers!
diff --git a/webclient/config/initializers/session_store.rb b/webclient/config/initializers/session_store.rb
new file mode 100644
index 0000000..080a8a6
--- /dev/null
+++ b/webclient/config/initializers/session_store.rb
@@ -0,0 +1,15 @@
+# Be sure to restart your server when you modify this file.
+
+# Your secret key for verifying cookie session data integrity.
+# If you change this key, all old sessions will become invalid!
+# Make sure the secret is at least 30 characters and all random,
+# no regular words or you'll be exposed to dictionary attacks.
+ActionController::Base.session = {
+ :key => '_web-client_session',
+ :secret => 'f05944f2fa89ced61528d66622c2f5f4dded5912a1276890d2907d012c416f3a32f22dbd22f24614346c1360380dbf71a6fcbbc0e32b2d0cc6812afc623d6c41'
+}
+
+# Use the database for sessions instead of the cookie-based default,
+# which shouldn't be used to store highly confidential information
+# (create the session table with "rake db:sessions:create")
+# ActionController::Base.session_store = :active_record_store
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org