2 # This file is part of SMR.
4 # SMR is free software: you can redistribute it and/or modify it under the
5 # terms of the GNU General Public License as published by the Free Software
6 # Foundation, either version 3 of the License, or (at your option) any later
9 # SMR is distributed in the hope that it will be useful, but WITHOUT ANY
10 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License along with
14 # SMR. If not, see <http://www.gnu.org/licenses/>.
16 require File.expand_path('../boot', __FILE__)
22 # If you have a Gemfile, require the gems listed there, including any gems
23 # you've limited to :test, :development, or :production.
24 Bundler.require(:default, Rails.env) if defined?(Bundler)
26 # Setup database backed session store
27 ActiveRecord::SessionStore::Session.table_name = 'user_session'
32 # Stock.id of the security to be used for cash deposits.
33 # - defined here to have the entire app use only one
34 # - see db/seeds.rb especially
37 class Application < Rails::Application
38 # Settings in config/environments/* take precedence over those specified here.
39 # Application configuration should go into files in config/initializers
40 # -- all .rb files in that directory are automatically loaded.
42 # Custom directories with classes and modules you want to be autoloadable.
43 config.autoload_paths += %W(#{config.root}/lib)
44 config.autoload_paths += Dir["#{config.root}/lib/**/"]
46 # Only load the plugins named here, in the order given (default is alphabetical).
47 # :all can be used as a placeholder for all plugins not explicitly named.
48 # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
50 # Activate observers that should always be running.
51 # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
53 config.active_record.pluralize_table_names = false
55 # Use native SQL schema to support database specifics such as triggers and special indices
56 config.active_record.schema_format = :sql
58 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
59 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
60 # config.time_zone = 'Central Time (US & Canada)'
62 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
63 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
64 # config.i18n.default_locale = :de
66 # JavaScript files you want as :defaults (application.js is always included).
67 # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
68 #config.action_view.javascript_expansions[:defaults] = %w()
70 # Configure the default encoding used in templates for Ruby 1.9.
71 config.encoding = "utf-8"
73 # Configure sensitive parameters which will be filtered from the log file.
74 config.filter_parameters += [:password]