Skip to content

Commit

Permalink
remove active_record.maintain_test_schema=false again; fix rubocop co…
Browse files Browse the repository at this point in the history
…nventions
  • Loading branch information
hupf committed Sep 3, 2014
1 parent 749029e commit b8be02b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
require File.expand_path('../boot', __FILE__)
require 'benchmark'

b = -> do
b = lambda do
require 'rails/all'
require 'jquery/rails'
end
Expand All @@ -30,7 +30,7 @@ class Application < Rails::Application
#{config.root}/app/jobs
#{config.root}/app/serializers
#{config.root}/app/utils
)
)

# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
Expand All @@ -56,16 +56,14 @@ class Application < Rails::Application
Globalize.fallbacks = { de: [:de, :fr, :it, :en],
fr: [:fr, :it, :en, :de],
it: [:it, :fr, :en, :de],
en: [:en, :de, :fr, :it]}
en: [:en, :de, :fr, :it]
}

# Route errors over the Rails application.
config.exceptions_app = self.routes

# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"

# Don't let Rails maintain the test schema (old behavior before 4.1)
config.active_record.maintain_test_schema = false
config.encoding = 'utf-8'

# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
Expand All @@ -75,8 +73,8 @@ class Application < Rails::Application

config.log_tags = [:uuid]

config.cache_store = :dalli_store, {compress: true,
namespace: ENV['RAILS_HOST_NAME'] || 'hitobito'}
config.cache_store = :dalli_store, { compress: true,
namespace: ENV['RAILS_HOST_NAME'] || 'hitobito' }

# Enable the asset pipeline
config.assets.enabled = true
Expand All @@ -88,8 +86,8 @@ class Application < Rails::Application
*.png *.gif *.jpg)

config.generators do |g|
g.test_framework :rspec, fixture: true
#g.fixture_replacement :fabrication
g.test_framework :rspec, fixture: true
# g.fixture_replacement :fabrication
end

config.to_prepare do
Expand All @@ -110,4 +108,4 @@ class Application < Rails::Application
end
end

require "prawn/measurement_extensions"
require 'prawn/measurement_extensions'

0 comments on commit b8be02b

Please sign in to comment.