application.rb revision 1d6f4b237172d2e6284a069f3c48086456fb0b34
58N/A # If you precompile assets before deploying to production, use this line 58N/A # If you want your assets lazily compiled in production, use this line 58N/A # -- all .rb files in that directory are automatically loaded. 58N/A # Custom directories with classes and modules you want to be autoloadable. 850N/A config.sass.load_paths << Compass::Frameworks['compass'].stylesheets_directory 128N/A # Mailer Layout for Devise https://github.com/plataformatec/devise/issues/1671 58N/A config.to_prepare { Devise::Mailer.layout "mailer" } 58N/A # Only load the plugins named here, in the order given (default is alphabetical). 850N/A # :all can be used as a placeholder for all plugins not explicitly named. 58N/A # config.plugins = [ :exception_notification, :ssl_requirement, :all ] 58N/A # Activate observers that should always be running. 58N/A # config.active_record.observers = :cacher, :garbage_collector, :forum_observer 850N/A # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. 850N/A # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. 850N/A # config.time_zone = 'Central Time (US & Canada)' 850N/A # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. 850N/A # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] 850N/A # config.i18n.default_locale = :de 58N/A # Configure the default encoding used in templates for Ruby 1.9. 874N/A config.encoding = "utf-8" 850N/A # Configure sensitive parameters which will be filtered from the log file. 850N/A config.filter_parameters += [:password] 850N/A # Use SQL instead of Active Record's schema dumper when creating the database. 850N/A # This is necessary if your schema can't be completely dumped by the schema dumper, 850N/A # like if you have constraints or database-specific column types 866N/A config.active_record.schema_format = :sql 866N/A # Enforce whitelist mode for mass assignment. 850N/A # This will create an empty whitelist of attributes available for mass-assignment for all models 850N/A # in your app. As such, your models will need to explicitly whitelist or blacklist accessible 830N/A # parameters by using an attr_accessible or attr_protected declaration. 850N/A config.active_record.whitelist_attributes = true 58N/A # Enable the asset pipeline 892N/A config.assets.enabled = true 892N/A # Version of your assets, change this if you want to expire all your assets 892N/A config.assets.version = '1.0' 892N/A config.i18n.enforce_available_locales = true 874N/A # Including Jstree Themes Styles in Precompiling 874N/A config.assets.precompile += %w(jstree-themes/**/*) 874N/A #Including the external mappings Yaml-file 874N/A config.external_url_mapping = APP_CONFIG = YAML.load(File.read(Rails.root + "config/external_link_mapping.yml")) 58N/A config.before_initialize do 144N/A local_environment_config = config.root.join('config', 'environments', require local_environment_config if File.exists?(local_environment_config) Settings.prepend_source!(Rails.root.join('config', 'hets.yml').to_s) # Enable serving of images, stylesheets, and JavaScripts from an asset server config.action_controller.asset_host = Settings.asset_host require config.root.join('config', 'initializers', 'hostname.rb') Settings.action_mailer[:default_url_options] ||= {} Settings.action_mailer[:default_url_options][:host] ||= config.fqdn Settings.action_mailer[:default_url_options][:port] ||= config.port Settings.action_mailer.each do |key, value| config.action_mailer.send("#{key}=", value) config.after_initialize do SettingsValidator.new.validate!