config/environment.rb in mitamirri-0.13.8 vs config/environment.rb in mitamirri-2.0.8
- old
+ new
@@ -1,24 +1,5 @@
-# Be sure to restart your server when you modify this file
+# Load the rails application
+require File.expand_path('../application', __FILE__)
-# Specifies gem version of Rails to use when vendor/rails is not present
-# RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION
-
-# Bootstrap the Rails environment, frameworks, and default configuration
-require File.join(File.dirname(__FILE__), 'boot')
-
-Rails::Initializer.run do |config|
- config.frameworks -= [:active_record]
- config.gem 'mitamirri'
- config.gem 'mongo_mapper'
- config.time_zone = 'Central Time (US & Canada)'
- config.action_controller.session = {
- :session_key => '_seologic_session',
- :secret => 'be43561c9a1980a7230fd9530aed9f4d1a29f780cd80afc9091180d01d17980308d583f59d3c8d6832c26d92d1c6d5ebc21b9d5565d1e04136b198882d01f303'
- }
-# config.action_controller.session_store = :active_record_store
-end
-
-if RAILS_ENV == 'test'
- require 'spec/spec_helper'
-# require 'spec/blueprints'
-end
+# Initialize the rails application
+Mitamirri::Application.initialize!