lib/generators/instance/templates/instance_environment.rb in radiant-0.6.7 vs lib/generators/instance/templates/instance_environment.rb in radiant-0.6.8

- old
+ new

@@ -37,17 +37,17 @@ # 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 => '_radiant_session', - :secret => 'asdfqwerfxcoivswqenadfasdfqewpfioutyqwel' + :secret => <% require 'digest/sha1' %>'<%= Digest::SHA1.hexdigest("--#{app_name}--#{Time.now.to_s}--#{rand(10000000)}--") %>' } # 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 + config.action_controller.session_store = :cookie_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 # config.active_record.schema_format = :sql @@ -82,6 +82,8 @@ # Response Caching Defaults ResponseCache.defaults[:directory] = ActionController::Base.page_cache_directory ResponseCache.defaults[:logger] = ActionController::Base.logger end -end +end + +Page.load_subclasses \ No newline at end of file