merged initial codebase
[smr.git] / gui / config / application.rb
blobb42c72f65eb952d860fc5e52732569b9be688146
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
7 # version.
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__)
17 require 'rails/all'
19 # SMR Release Version
20 VERSION = '1.0.0'
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 module Smr
27   class Application < Rails::Application
28     # Settings in config/environments/* take precedence over those specified here.
29     # Application configuration should go into files in config/initializers
30     # -- all .rb files in that directory are automatically loaded.
32     # Custom directories with classes and modules you want to be autoloadable.
33     config.autoload_paths += %W(#{config.root}/lib)
34     config.autoload_paths += Dir["#{config.root}/lib/**/"]
36     # Only load the plugins named here, in the order given (default is alphabetical).
37     # :all can be used as a placeholder for all plugins not explicitly named.
38     # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
40     # Activate observers that should always be running.
41     # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
43     config.active_record.pluralize_table_names = false
45     # Use native SQL schema to support database specifics such as triggers and special indices
46     config.active_record.schema_format = :sql
48     # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
49     # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
50     # config.time_zone = 'Central Time (US & Canada)'
52     # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
53     # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
54     # config.i18n.default_locale = :de
56     # JavaScript files you want as :defaults (application.js is always included).
57     # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
58     #config.action_view.javascript_expansions[:defaults] = %w()
60     # Configure the default encoding used in templates for Ruby 1.9.
61     config.encoding = "utf-8"
63     # Configure sensitive parameters which will be filtered from the log file.
64     config.filter_parameters += [:password]
65   end
66 end