- # Force all environments to use the same logger level
- # (by default production uses :info, the others :debug)
- # config.log_level = :debug
-
- # Use our custom logger
- config.logger = OSMLogger.new(config.log_path)
- config.logger.level = Logger.const_get(config.log_level.to_s.upcase)
-
- # Use the database for sessions instead of the file system
- # (create the session table with 'rake db:sessions:create')
- # config.action_controller.session_store = :sql_session_store
-
- # Unfortunately SqlSessionStore is a plugin which has not been
- # loaded yet, so we have to do things the hard way...
- config.after_initialize do
- ActionController::Base.session_store = :sql_session_store
- SqlSessionStore.session_class = MysqlSession
+ # Specify gems that this application depends on and have them installed with rake gems:install
+ unless STATUS == :database_offline
+ config.gem 'composite_primary_keys', :version => '2.2.2'
+ end
+ config.gem 'libxml-ruby', :version => '>= 2.0.5', :lib => 'libxml'
+ config.gem 'rmagick', :lib => 'RMagick'
+ config.gem 'oauth', :version => '>= 0.4.3'
+ config.gem 'oauth-plugin', :version => '0.3.14'
+ config.gem 'httpclient'
+ config.gem 'SystemTimer', :version => '>= 1.1.3', :lib => 'system_timer'
+ config.gem 'sanitize'
+ config.gem 'i18n', :version => '>= 0.5.0'
+ if defined?(MEMCACHE_SERVERS)
+ config.gem 'memcached'