1 # Be sure to restart your web server when you modify this file.
3 # The directory path and the filename of this script
4 module EnvironmentConstants
5 DIR = File.dirname(File.expand_path(__FILE__))
6 FILENAME = $0.split('/')[-1]
9 # mwamko_constants.rb loads a lot of important variables including RAILS_ROOT
10 require "#{EnvironmentConstants::DIR}/mwamko_constants"
12 # Uncomment below to force Rails into production mode when
13 # you don't control web/app server and can't set it the proper way
14 ENV['RAILS_ENV'] ||= 'development'
16 # Specifies gem version of Rails to use when vendor/rails is not present
17 RAILS_GEM_VERSION = '1.2.3' unless defined? RAILS_GEM_VERSION
19 # Bootstrap the Rails environment, frameworks, and default configuration
20 require "#{EnvironmentConstants::DIR}/boot"
22 Rails::Initializer.run do |config|
23 # Settings in config/environments/* take precedence over those specified here
25 # Skip frameworks you're not going to use (only works if using vendor/rails)
26 # config.frameworks -= [ :action_web_service, :action_mailer ]
28 # Only load the plugins named here, by default all plugins in vendor/plugins are loaded
29 # config.plugins = %W( exception_notification ssl_requirement )
31 # Add additional load paths for your own custom dirs
32 # config.load_paths += %W( #{RAILS_ROOT}/extras )
34 # Force all environments to use the same logger level
35 # (by default production uses :info, the others :debug)
36 # config.log_level = :debug
38 # Use the database for sessions instead of the file system
39 # (create the session table with 'rake db:sessions:create')
40 # config.action_controller.session_store = :active_record_store
42 # Use SQL instead of Active Record's schema dumper when creating the test database.
43 # This is necessary if your schema can't be completely dumped by the schema dumper,
44 # like if you have constraints or database-specific column types
45 # config.active_record.schema_format = :sql
47 # Activate observers that should always be running
48 # config.active_record.observers = :cacher, :garbage_collector
50 # Make Active Record use UTC-base instead of local time
51 # config.active_record.default_timezone = :utc
53 # See Rails::Configuration for more options
56 # Add new inflection rules using the following format
57 # (all these examples are active by default):
58 # Inflector.inflections do |inflect|
59 # inflect.plural /^(ox)$/i, '\1en'
60 # inflect.singular /^(ox)en/i, '\1'
61 # inflect.irregular 'person', 'people'
62 # inflect.uncountable %w( fish sheep )
65 # Add new mime types for use in respond_to blocks:
66 # Mime::Type.register "text/richtext", :rtf
67 # Mime::Type.register "application/x-mobile", :mobile
69 # Include your application configuration below