how'd that get in there
[has_many_polymorphs.git] / test / integration / app / config / environment.rb
blob39f34deeb910f53bf7e2d0dccecce614d2895eeb
1 require File.join(File.dirname(__FILE__), 'boot')
2 require 'action_controller'
4 Rails::Initializer.run do |config|
5   
6   if ActionController::Base.respond_to? 'session='
7     config.action_controller.session = {:session_key => '_app_session', :secret => '22cde4d5c1a61ba69a81795322cde4d5c1a61ba69a817953'}
8   end
9   
10   config.load_paths << "#{RAILS_ROOT}/app/models/person" # moduleless model path
11   
12   config.after_initialize do
13     config.has_many_polymorphs_options['requirements'] << "#{RAILS_ROOT}/lib/library_model"
14   end      
15 end
17 # Dependencies.log_activity = true
19 ENV['RAILS_ASSET_ID'] = Time.now.to_i.to_s