Initial Rails 4.0.x upgrade

This commit is contained in:
Al Snow
2014-09-07 13:00:54 -04:00
parent ecb2ec612e
commit 23513cf8d2
18 changed files with 125 additions and 123 deletions
+1 -12
View File
@@ -2,12 +2,7 @@ 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 mysql)))
# If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env)
end
Bundler.require(:default, Rails.env)
module Railsgoat
class Application < Rails::Application
@@ -47,12 +42,6 @@ module Railsgoat
# 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 = false
# Enable the asset pipeline
config.assets.enabled = true