update configs for rails 4

This commit is contained in:
Reinier Balt 2013-05-11 23:12:20 +02:00
parent d1de2998de
commit 65859807ea
15 changed files with 226 additions and 239 deletions

View file

@ -2,12 +2,9 @@ require File.expand_path('../boot', __FILE__)
require 'rails/all'
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
Bundler.require(*Rails.groups(:assets => %w(development test)))
# If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env)
end
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env)
require 'yaml'
SITE_CONFIG = YAML.load_file(File.join(File.dirname(__FILE__), 'site.yml'))
@ -48,19 +45,10 @@ module Tracksapp
# This is necessary if your schema can't be completely dumped by the schema dumper,
# like if you have constraints or database-specific column types
# config.active_record.schema_format = :sql
# Enforce whitelist mode for mass assignment.
# This will create an empty whitelist of attributes available for mass-assignment for all models
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
# parameters by using an attr_accessible or attr_protected declaration.
config.active_record.whitelist_attributes = true
# Set timezone of dates in database
config.active_record.default_timezone = :utc
# Enable the asset pipeline
config.assets.enabled = true
# Disable loading of the full environment when precompiling assets
config.assets.initialize_on_precompile = false